From b82d121152833b013b2433c3b51e01b207694e81 Mon Sep 17 00:00:00 2001 From: "Yestin L. Harrison" Date: Thu, 21 Jul 2022 08:22:08 -0700 Subject: [PATCH 1/2] plan9port: update darwin inputs --- pkgs/tools/system/plan9port/default.nix | 31 +++++++++---------------- pkgs/top-level/all-packages.nix | 5 +++- 2 files changed, 15 insertions(+), 21 deletions(-) diff --git a/pkgs/tools/system/plan9port/default.nix b/pkgs/tools/system/plan9port/default.nix index f165bfca4252..b0390de6b693 100644 --- a/pkgs/tools/system/plan9port/default.nix +++ b/pkgs/tools/system/plan9port/default.nix @@ -1,24 +1,17 @@ -{ lib -, stdenv -, fetchFromGitHub -, darwin ? null -, fontconfig ? null -, freetype ? null -, libX11 -, libXext ? null -, libXt ? null -, perl ? null # For building web manuals +{ lib, stdenv, fetchFromGitHub +, fontconfig, freetype, libX11, libXext, libXt, xorgproto +, Carbon, Cocoa, IOKit, Metal, QuartzCore, DarwinTools +, perl # For building web manuals , which -, xorgproto ? null }: -stdenv.mkDerivation { +stdenv.mkDerivation rec { pname = "plan9port"; version = "2021-10-19"; - src = fetchFromGitHub { + src = fetchFromGitHub { owner = "9fans"; - repo = "plan9port"; + repo = pname; rev = "d0d440860f2000a1560abb3f593cdc325fcead4c"; hash = "sha256-2aYXqPGwrReyFPrLDtEjgQd/RJjpOfI3ge/tDocYpRQ="; }; @@ -44,22 +37,20 @@ stdenv.mkDerivation { --replace "case Kcmd+'v':" "case 0x16: case Kcmd+'v':" ''; - buildInputs = [ - perl - ] ++ lib.optionals (!stdenv.isDarwin) [ + buildInputs = [ perl ] ++ (if !stdenv.isDarwin then [ fontconfig - freetype # fontsrv wants ft2build.h provides system fonts for acme and sam + freetype # fontsrv wants ft2build.h libX11 libXext libXt xorgproto - ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ + ] else [ Carbon Cocoa IOKit Metal QuartzCore - darwin.DarwinTools + DarwinTools ]); builder = ./builder.sh; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 49772490ff0f..6273c2cf34d6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9646,7 +9646,10 @@ with pkgs; plantuml-server = callPackage ../tools/misc/plantuml-server { }; - plan9port = callPackage ../tools/system/plan9port { }; + plan9port = callPackage ../tools/system/plan9port { + inherit (darwin.apple_sdk.frameworks) Carbon Cocoa IOKit Metal QuartzCore; + inherit (darwin) DarwinTools; + }; platformioPackages = dontRecurseIntoAttrs (callPackage ../development/embedded/platformio { }); platformio = platformioPackages.platformio-chrootenv; From 8b618c0d5ae64c62d3ecd0ef558c46fce4766ca1 Mon Sep 17 00:00:00 2001 From: "Yestin L. Harrison" Date: Tue, 26 Jul 2022 07:56:24 -0700 Subject: [PATCH 2/2] maintainers: add myself --- maintainers/maintainer-list.nix | 6 ++++++ pkgs/tools/system/plan9port/default.nix | 1 + 2 files changed, 7 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index acc04a533f60..1fd714839a42 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -14009,6 +14009,12 @@ githubId = 5978566; name = "Yves-Stan Le Cornec"; }; + ylh = { + email = "nixpkgs@ylh.io"; + github = "ylh"; + githubId = 9125590; + name = "Yestin L. Harrison"; + }; ylwghst = { email = "ylwghst@onionmail.info"; github = "ylwghst"; diff --git a/pkgs/tools/system/plan9port/default.nix b/pkgs/tools/system/plan9port/default.nix index b0390de6b693..1d64e3b93410 100644 --- a/pkgs/tools/system/plan9port/default.nix +++ b/pkgs/tools/system/plan9port/default.nix @@ -91,6 +91,7 @@ stdenv.mkDerivation rec { ehmry ftrvxmtrx kovirobi + ylh ]; mainProgram = "9"; platforms = platforms.unix;