From c9e55a586be64a3f2a405360d035e826c930ae88 Mon Sep 17 00:00:00 2001 From: Colin Date: Wed, 19 Apr 2023 11:24:21 +0000 Subject: [PATCH 1/5] flake: update nixpkgs 2023-04-16 -> 2023-04-19 (staging-next) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ``` • Updated input 'nixpkgs-unpatched': 'github:nixos/nixpkgs/f294325aed382b66c7a188482101b0f336d1d7db' (2023-04-16) → 'github:nixos/nixpkgs/bf5b2a67bccd55572834c40a3c1c92530ab55673' (2023-04-19) • Updated input 'sops-nix': 'github:Mic92/sops-nix/de6514f8fe1b3c2b57307569a0898bc4be9ae1c5' (2023-04-17) → 'github:Mic92/sops-nix/5698b06b0731a2c15ff8c2351644427f8ad33993' (2023-04-18) ``` --- flake.lock | 14 +++++++------- flake.nix | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/flake.lock b/flake.lock index cfdfff95..9b9a32d3 100644 --- a/flake.lock +++ b/flake.lock @@ -82,16 +82,16 @@ }, "nixpkgs-unpatched": { "locked": { - "lastModified": 1681648924, - "narHash": "sha256-pzi3HISK8+7mpEtv08Yr80wswyHKsz+RP1CROG1Qf6s=", + "lastModified": 1681893389, + "narHash": "sha256-xio7hOtYT0xYq71QxzoXxOTxkyiK9aMo32DEaMv/KTM=", "owner": "nixos", "repo": "nixpkgs", - "rev": "f294325aed382b66c7a188482101b0f336d1d7db", + "rev": "bf5b2a67bccd55572834c40a3c1c92530ab55673", "type": "github" }, "original": { "owner": "nixos", - "ref": "nixos-unstable", + "ref": "staging-next", "repo": "nixpkgs", "type": "github" } @@ -113,11 +113,11 @@ "nixpkgs-stable": "nixpkgs-stable" }, "locked": { - "lastModified": 1681721408, - "narHash": "sha256-NWCbZKOQEXz1hA2YDFxdd+fVrrw9edbG1DvbbLf7KUY=", + "lastModified": 1681821695, + "narHash": "sha256-uwyBGo/9IALi97AfMuzkJroQQhV6hkybaZVdw6pRNG4=", "owner": "Mic92", "repo": "sops-nix", - "rev": "de6514f8fe1b3c2b57307569a0898bc4be9ae1c5", + "rev": "5698b06b0731a2c15ff8c2351644427f8ad33993", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index bbb2872e..05d91d8c 100644 --- a/flake.nix +++ b/flake.nix @@ -43,8 +43,8 @@ # - use `staging` if no staging-next branch has been cut. # # - nixpkgs-unpatched.url = "github:nixos/nixpkgs?ref=nixos-unstable"; - # nixpkgs-unpatched.url = "github:nixos/nixpkgs?ref=staging-next"; + # nixpkgs-unpatched.url = "github:nixos/nixpkgs?ref=nixos-unstable"; + nixpkgs-unpatched.url = "github:nixos/nixpkgs?ref=staging-next"; # nixpkgs-unpatched.url = "github:nixos/nixpkgs?ref=staging"; mobile-nixos = { From a952f84ee4d38216569963d2a246c5d19c3a6efb Mon Sep 17 00:00:00 2001 From: Colin Date: Wed, 19 Apr 2023 13:42:35 +0000 Subject: [PATCH 2/5] cross: fix patches --- hosts/common/cross/default.nix | 9 +++++---- nixpatches/list.nix | 6 ------ 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/hosts/common/cross/default.nix b/hosts/common/cross/default.nix index ee4206b4..d141ef00 100644 --- a/hosts/common/cross/default.nix +++ b/hosts/common/cross/default.nix @@ -267,14 +267,15 @@ in # the configuration of which specific package set `pkgs.cross` refers to happens elsewhere; # here we just define them all. - nixpkgs.config.perlPackageOverrides = pkgs: (with pkgs; with pkgs.perlPackages; { + nixpkgs.config.perlPackageOverrides = pkgs': (with pkgs'; with pkgs'.perlPackages; { # these are the upstream nixpkgs perl modules, but with `nativeBuildInputs = [ perl ]` # to fix cross compilation errors + # see # TODO: try this PR: https://github.com/NixOS/nixpkgs/pull/225640 ModuleBuild = buildPerlPackage { pname = "Module-Build"; version = "0.4231"; - src = fetchurl { + src = pkgs.fetchurl { url = "mirror://cpan/authors/id/L/LE/LEONT/Module-Build-0.4231.tar.gz"; hash = "sha256-fg9MaSwXQMGshOoU1+o9i8eYsvsmwJh3Ip4E9DCytxc="; }; @@ -292,7 +293,7 @@ in FileBaseDir = buildPerlModule { version = "0.08"; pname = "File-BaseDir"; - src = fetchurl { + src = pkgs.fetchurl { url = "mirror://cpan/authors/id/K/KI/KIMRYAN/File-BaseDir-0.08.tar.gz"; hash = "sha256-wGX80+LyKudpk3vMlxuR+AKU1QCfrBQL+6g799NTBeM="; }; @@ -312,7 +313,7 @@ in Testutf8 = buildPerlPackage { pname = "Test-utf8"; version = "1.02"; - src = fetchurl { + src = pkgs.fetchurl { url = "mirror://cpan/authors/id/M/MA/MARKF/Test-utf8-1.02.tar.gz"; hash = "sha256-34LwnFlAgwslpJ8cgWL6JNNx5gKIDt742aTUv9Zri9c="; }; diff --git a/nixpatches/list.nix b/nixpatches/list.nix index c2d79aff..d363d0ff 100644 --- a/nixpatches/list.nix +++ b/nixpatches/list.nix @@ -38,12 +38,6 @@ hash = "sha256-RbQzAtFTr7Nrk2YBcHpKQMYoPlFMVSXNl96B/lkKluQ="; }) - # 2023-04-18: obsidian: update electron_21 -> 24 (merged; waiting to reach downstream branches) - (fetchpatch { - url = "https://github.com/NixOS/nixpkgs/pull/226591.diff"; - hash = "sha256-5Nv529giGtsU9z1WPIxOOLNlAwCw2MCYEaHAap/E0NI="; - }) - # # kaiteki: init at 2022-09-03 # vendorHash changes too frequently (might not be reproducible). # using local package defn until stabilized From 198c40df6660f5041ef70e32416bae7a6a0448a7 Mon Sep 17 00:00:00 2001 From: Colin Date: Wed, 19 Apr 2023 13:43:12 +0000 Subject: [PATCH 3/5] minor nixpkgs update (2023-04-19 -> 2023-04-19) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ``` • Updated input 'nixpkgs-unpatched': 'github:nixos/nixpkgs/bf5b2a67bccd55572834c40a3c1c92530ab55673' (2023-04-19) → 'github:nixos/nixpkgs/a1cb3e73104adb41f8902093e07b8eba2114ab3f' (2023-04-19) ``` --- flake.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index 9b9a32d3..f98e1586 100644 --- a/flake.lock +++ b/flake.lock @@ -82,11 +82,11 @@ }, "nixpkgs-unpatched": { "locked": { - "lastModified": 1681893389, - "narHash": "sha256-xio7hOtYT0xYq71QxzoXxOTxkyiK9aMo32DEaMv/KTM=", + "lastModified": 1681905675, + "narHash": "sha256-H2jcZFkMSAig0L4LgKSaEYR8KRpNNekrId4SQkdllGI=", "owner": "nixos", "repo": "nixpkgs", - "rev": "bf5b2a67bccd55572834c40a3c1c92530ab55673", + "rev": "a1cb3e73104adb41f8902093e07b8eba2114ab3f", "type": "github" }, "original": { From 8df87256a13b39f6858b926f0556315cda1c3454 Mon Sep 17 00:00:00 2001 From: Colin Date: Fri, 21 Apr 2023 19:41:42 +0000 Subject: [PATCH 4/5] partial nixpkgs update (ibus fails) --- flake.lock | 14 ++-- hosts/common/cross/default.nix | 124 ++++++++++++++++----------------- nixpatches/list.nix | 6 ++ 3 files changed, 75 insertions(+), 69 deletions(-) diff --git a/flake.lock b/flake.lock index f98e1586..180f06da 100644 --- a/flake.lock +++ b/flake.lock @@ -82,11 +82,11 @@ }, "nixpkgs-unpatched": { "locked": { - "lastModified": 1681905675, - "narHash": "sha256-H2jcZFkMSAig0L4LgKSaEYR8KRpNNekrId4SQkdllGI=", + "lastModified": 1681998133, + "narHash": "sha256-Ki9ZArDrj7m9+59drB+p/w0hmEb0AP1I7Qaq83jJCBw=", "owner": "nixos", "repo": "nixpkgs", - "rev": "a1cb3e73104adb41f8902093e07b8eba2114ab3f", + "rev": "6ae5dc6f745d745c5ff583f9eb425717ec322f75", "type": "github" }, "original": { @@ -134,11 +134,11 @@ ] }, "locked": { - "lastModified": 1680517067, - "narHash": "sha256-8Ew0IDRuzEGFUjIGqk7EjuB/NL80HDIvlR1YY4Iw95M=", + "lastModified": 1681952179, + "narHash": "sha256-GfI682y7LJXj6p0kcYIyzVKFNKtkEbxvMGu5VjSPeN4=", "ref": "refs/heads/master", - "rev": "2970c6080187975a1fc996f541167e697d4ebebc", - "revCount": 187, + "rev": "3b9ce28b7a65d516eedddac67a224493399e5b1e", + "revCount": 190, "type": "git", "url": "https://git.uninsane.org/colin/uninsane" }, diff --git a/hosts/common/cross/default.nix b/hosts/common/cross/default.nix index d141ef00..29c7eb30 100644 --- a/hosts/common/cross/default.nix +++ b/hosts/common/cross/default.nix @@ -267,67 +267,67 @@ in # the configuration of which specific package set `pkgs.cross` refers to happens elsewhere; # here we just define them all. - nixpkgs.config.perlPackageOverrides = pkgs': (with pkgs'; with pkgs'.perlPackages; { - # these are the upstream nixpkgs perl modules, but with `nativeBuildInputs = [ perl ]` - # to fix cross compilation errors - # see - # TODO: try this PR: https://github.com/NixOS/nixpkgs/pull/225640 - ModuleBuild = buildPerlPackage { - pname = "Module-Build"; - version = "0.4231"; - src = pkgs.fetchurl { - url = "mirror://cpan/authors/id/L/LE/LEONT/Module-Build-0.4231.tar.gz"; - hash = "sha256-fg9MaSwXQMGshOoU1+o9i8eYsvsmwJh3Ip4E9DCytxc="; - }; - # support cross-compilation by removing unnecessary File::Temp version check - # postPatch = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) '' - # sed -i '/File::Temp/d' Build.PL - # ''; - nativeBuildInputs = [ perl ]; - meta = { - description = "Build and install Perl modules"; - license = with lib.licenses; [ artistic1 gpl1Plus ]; - mainProgram = "config_data"; - }; - }; - FileBaseDir = buildPerlModule { - version = "0.08"; - pname = "File-BaseDir"; - src = pkgs.fetchurl { - url = "mirror://cpan/authors/id/K/KI/KIMRYAN/File-BaseDir-0.08.tar.gz"; - hash = "sha256-wGX80+LyKudpk3vMlxuR+AKU1QCfrBQL+6g799NTBeM="; - }; - configurePhase = '' - runHook preConfigure - perl Build.PL PREFIX="$out" prefix="$out" - ''; - nativeBuildInputs = [ perl ]; - propagatedBuildInputs = [ IPCSystemSimple ]; - buildInputs = [ FileWhich ]; - meta = { - description = "Use the Freedesktop.org base directory specification"; - license = with lib.licenses; [ artistic1 gpl1Plus ]; - }; - }; - # fixes: "FAILED IPython/terminal/tests/test_debug_magic.py::test_debug_magic_passes_through_generators - pexpect.exceptions.TIMEOUT: Timeout exceeded." - Testutf8 = buildPerlPackage { - pname = "Test-utf8"; - version = "1.02"; - src = pkgs.fetchurl { - url = "mirror://cpan/authors/id/M/MA/MARKF/Test-utf8-1.02.tar.gz"; - hash = "sha256-34LwnFlAgwslpJ8cgWL6JNNx5gKIDt742aTUv9Zri9c="; - }; - nativeBuildInputs = [ perl ]; - meta = { - description = "Handy utf8 tests"; - homepage = "https://github.com/2shortplanks/Test-utf8/tree"; - license = with lib.licenses; [ artistic1 gpl1Plus ]; - }; - }; - # inherit (pkgs.emulated.perl.pkgs) - # Testutf8 - # ; - }); + # nixpkgs.config.perlPackageOverrides = pkgs': (with pkgs'; with pkgs'.perlPackages; { + # # these are the upstream nixpkgs perl modules, but with `nativeBuildInputs = [ perl ]` + # # to fix cross compilation errors + # # see + # # TODO: try this PR: https://github.com/NixOS/nixpkgs/pull/225640 + # ModuleBuild = buildPerlPackage { + # pname = "Module-Build"; + # version = "0.4231"; + # src = pkgs.fetchurl { + # url = "mirror://cpan/authors/id/L/LE/LEONT/Module-Build-0.4231.tar.gz"; + # hash = "sha256-fg9MaSwXQMGshOoU1+o9i8eYsvsmwJh3Ip4E9DCytxc="; + # }; + # # support cross-compilation by removing unnecessary File::Temp version check + # # postPatch = lib.optionalString (pkgs.stdenv.hostPlatform != pkgs.stdenv.buildPlatform) '' + # # sed -i '/File::Temp/d' Build.PL + # # ''; + # nativeBuildInputs = [ perl ]; + # meta = { + # description = "Build and install Perl modules"; + # license = with lib.licenses; [ artistic1 gpl1Plus ]; + # mainProgram = "config_data"; + # }; + # }; + # FileBaseDir = buildPerlModule { + # version = "0.08"; + # pname = "File-BaseDir"; + # src = pkgs.fetchurl { + # url = "mirror://cpan/authors/id/K/KI/KIMRYAN/File-BaseDir-0.08.tar.gz"; + # hash = "sha256-wGX80+LyKudpk3vMlxuR+AKU1QCfrBQL+6g799NTBeM="; + # }; + # configurePhase = '' + # runHook preConfigure + # perl Build.PL PREFIX="$out" prefix="$out" + # ''; + # nativeBuildInputs = [ perl ]; + # propagatedBuildInputs = [ IPCSystemSimple ]; + # buildInputs = [ FileWhich ]; + # meta = { + # description = "Use the Freedesktop.org base directory specification"; + # license = with lib.licenses; [ artistic1 gpl1Plus ]; + # }; + # }; + # # fixes: "FAILED IPython/terminal/tests/test_debug_magic.py::test_debug_magic_passes_through_generators - pexpect.exceptions.TIMEOUT: Timeout exceeded." + # Testutf8 = buildPerlPackage { + # pname = "Test-utf8"; + # version = "1.02"; + # src = pkgs.fetchurl { + # url = "mirror://cpan/authors/id/M/MA/MARKF/Test-utf8-1.02.tar.gz"; + # hash = "sha256-34LwnFlAgwslpJ8cgWL6JNNx5gKIDt742aTUv9Zri9c="; + # }; + # nativeBuildInputs = [ perl ]; + # meta = { + # description = "Handy utf8 tests"; + # homepage = "https://github.com/2shortplanks/Test-utf8/tree"; + # license = with lib.licenses; [ artistic1 gpl1Plus ]; + # }; + # }; + # # inherit (pkgs.emulated.perl.pkgs) + # # Testutf8 + # # ; + # }); # XXX: replaceStdenv only affects non-cross stages # nixpkgs.config.replaceStdenv = { pkgs }: pkgs.ccacheStdenv; nixpkgs.overlays = crossOnlyUniversalOverlays ++ [ @@ -415,7 +415,7 @@ in jellyfin-web # in node-dependencies-jellyfin-web: "node: command not found" (nodePackages don't cross compile) # libgccjit # "../../gcc-9.5.0/gcc/jit/jit-result.c:52:3: error: 'dlclose' was not declared in this scope" (needed by emacs!) # libsForQt5 # qtbase # make: g++: No such file or directory - # perlInterpreters # perl5.36.0-Module-Build perl5.36.0-Test-utf8 (see tracking issues ^) + perlInterpreters # perl5.36.0-Module-Build perl5.36.0-Test-utf8 (see tracking issues ^) # qgnomeplatform # qtbase qt5 # qt5.qtx11extras fails, but we can't selectively emulate it diff --git a/nixpatches/list.nix b/nixpatches/list.nix index d363d0ff..17692f24 100644 --- a/nixpatches/list.nix +++ b/nixpatches/list.nix @@ -38,6 +38,12 @@ hash = "sha256-RbQzAtFTr7Nrk2YBcHpKQMYoPlFMVSXNl96B/lkKluQ="; }) + # 2023-04-20: perl: fix modules for compatibility with miniperl + # (fetchpatch { + # url = "https://github.com/NixOS/nixpkgs/pull/225640.diff"; + # hash = "sha256-MNG8C0OgdPnFQ8SF2loiEhXJuP2z4n9pkXr8Zh4X7QU="; + # }) + # # kaiteki: init at 2022-09-03 # vendorHash changes too frequently (might not be reproducible). # using local package defn until stabilized From 20f4251c6e90ec48e5eea95e26192f6b9d042b46 Mon Sep 17 00:00:00 2001 From: Colin Date: Tue, 25 Apr 2023 06:40:01 +0000 Subject: [PATCH 5/5] nix flake update 2023/04/23 --- flake.lock | 18 +++++------ hosts/common/cross/default.nix | 56 +++++++++++++++++++--------------- overlays/pins.nix | 11 +++++++ 3 files changed, 52 insertions(+), 33 deletions(-) diff --git a/flake.lock b/flake.lock index 180f06da..d429c05a 100644 --- a/flake.lock +++ b/flake.lock @@ -66,11 +66,11 @@ }, "nixpkgs-stable": { "locked": { - "lastModified": 1681613598, - "narHash": "sha256-Ogkoma0ytYcDoMR2N7CZFABPo+i0NNo26dPngru9tPc=", + "lastModified": 1682173319, + "narHash": "sha256-tPhOpJJ+wrWIusvGgIB2+x6ILfDkEgQMX0BTtM5vd/4=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "1040ce5f652b586da95dfd80d48a745e107b9eac", + "rev": "ee7ec1c71adc47d2e3c2d5eb0d6b8fbbd42a8d1c", "type": "github" }, "original": { @@ -82,11 +82,11 @@ }, "nixpkgs-unpatched": { "locked": { - "lastModified": 1681998133, - "narHash": "sha256-Ki9ZArDrj7m9+59drB+p/w0hmEb0AP1I7Qaq83jJCBw=", + "lastModified": 1682272886, + "narHash": "sha256-fBeoSYSvFeZte9jVxUlyKbWQdzLjfMrXK3Dhwg/usoI=", "owner": "nixos", "repo": "nixpkgs", - "rev": "6ae5dc6f745d745c5ff583f9eb425717ec322f75", + "rev": "7d385961ebe582fed4e850a326d8d200be79f6b8", "type": "github" }, "original": { @@ -113,11 +113,11 @@ "nixpkgs-stable": "nixpkgs-stable" }, "locked": { - "lastModified": 1681821695, - "narHash": "sha256-uwyBGo/9IALi97AfMuzkJroQQhV6hkybaZVdw6pRNG4=", + "lastModified": 1682218555, + "narHash": "sha256-kojMklCNBnPe8KtRvJvBtFGU/gPAqRKYpZEqyehHfn4=", "owner": "Mic92", "repo": "sops-nix", - "rev": "5698b06b0731a2c15ff8c2351644427f8ad33993", + "rev": "8a95e6f8cd160a05c2b560e66f702432a53b59ac", "type": "github" }, "original": { diff --git a/hosts/common/cross/default.nix b/hosts/common/cross/default.nix index 29c7eb30..11314f91 100644 --- a/hosts/common/cross/default.nix +++ b/hosts/common/cross/default.nix @@ -412,6 +412,7 @@ in # nixpkgs hdf5 is at commit 3e847e003632bdd5fdc189ccbffe25ad2661e16f # hdf5 # configure: error: cannot run test program while cross compiling # http2 + ibus jellyfin-web # in node-dependencies-jellyfin-web: "node: command not found" (nodePackages don't cross compile) # libgccjit # "../../gcc-9.5.0/gcc/jit/jit-result.c:52:3: error: 'dlclose' was not declared in this scope" (needed by emacs!) # libsForQt5 # qtbase # make: g++: No such file or directory @@ -890,17 +891,20 @@ in i2p = mvToNativeInputs [ next.ant next.gettext ] prev.i2p; # ibus = (prev.ibus.override { - # # fixes: "configure.ac:152: error: possibly undefined macro: AM_PATH_GLIB_2_0" - # inherit (emulated) stdenv; - ibus = prev.ibus.overrideAttrs (upstream: { - nativeBuildInputs = upstream.nativeBuildInputs or [] ++ [ - next.glib # fixes: ImportError: /nix/store/fi1rsalr11xg00dqwgzbf91jpl3zwygi-gobject-introspection-aarch64-unknown-linux-gnu-1.74.0/lib/gobject-introspection/giscanner/_giscanner.cpython-310-x86_64-linux-gnu.so: cannot open shared object file: No such file or directory - next.buildPackages.gobject-introspection # fixes "_giscanner.cpython-310-x86_64-linux-gnu.so: cannot open shared object file: No such file or directory" - ]; - buildInputs = lib.remove next.gobject-introspection upstream.buildInputs ++ [ - next.vala # fixes: "Package `ibus-1.0' not found in specified Vala API directories or GObject-Introspection GIR directories" - ]; - }); + # inherit (emulated) + # stdenv # fixes: "configure: error: cannot run test program while cross compiling" + # gobject-introspection # "cannot open shared object ..." + # ; + # }); + # .overrideAttrs (upstream: { + # nativeBuildInputs = upstream.nativeBuildInputs or [] ++ [ + # next.glib # fixes: ImportError: /nix/store/fi1rsalr11xg00dqwgzbf91jpl3zwygi-gobject-introspection-aarch64-unknown-linux-gnu-1.74.0/lib/gobject-introspection/giscanner/_giscanner.cpython-310-x86_64-linux-gnu.so: cannot open shared object file: No such file or directory + # next.buildPackages.gobject-introspection # fixes "_giscanner.cpython-310-x86_64-linux-gnu.so: cannot open shared object file: No such file or directory" + # ]; + # buildInputs = lib.remove next.gobject-introspection upstream.buildInputs ++ [ + # next.vala # fixes: "Package `ibus-1.0' not found in specified Vala API directories or GObject-Introspection GIR directories" + # ]; + # }); # fixes "./autogen.sh: line 26: gtkdocize: not found" iio-sensor-proxy = mvToNativeInputs [ next.glib next.gtk-doc ] prev.iio-sensor-proxy; @@ -917,19 +921,19 @@ in openjdk8-bootstrap = useEmulatedStdenv prev.javaPackages.compiler.openjdk8-bootstrap; # fixes "configure: error: Could not find required tool for WHICH" openjdk8 = useEmulatedStdenv prev.javaPackages.compiler.openjdk8; - openjdk19 = ( - # fixes "configure: error: Could not find required tool for ZIPEXE" - # new failure: "checking for cc... [not found]" - (mvToNativeInputs - [ next.zip ] - (useEmulatedStdenv prev.javaPackages.compiler.openjdk19) - ).overrideAttrs (_upstream: { - # avoid building `support/demos`, which segfaults - buildFlags = [ "product-images" ]; - doCheck = false; # pre-emptive - }) - ); - # openjdk19 = emulated.javaPackages.compiler.openjdk19; + # openjdk19 = ( + # # fixes "configure: error: Could not find required tool for ZIPEXE" + # # new failure: "checking for cc... [not found]" + # (mvToNativeInputs + # [ next.zip ] + # (useEmulatedStdenv prev.javaPackages.compiler.openjdk19) + # ).overrideAttrs (_upstream: { + # # avoid building `support/demos`, which segfaults + # buildFlags = [ "product-images" ]; + # doCheck = false; # pre-emptive + # }) + # ); + openjdk19 = emulated.javaPackages.compiler.openjdk19; }; }; @@ -1176,6 +1180,10 @@ in ]; }); + cryptography = py-prev.cryptography.override { + inherit (emulated) rustPlatform; # "cargo:warning=aarch64-unknown-linux-gnu-gcc: error: unrecognized command-line option ‘-m64’" + }; + defcon = py-prev.defcon.overridePythonAttrs (orig: { nativeBuildInputs = orig.nativeBuildInputs ++ orig.nativeCheckInputs; }); diff --git a/overlays/pins.nix b/overlays/pins.nix index ca562e9c..dded29a2 100644 --- a/overlays/pins.nix +++ b/overlays/pins.nix @@ -18,4 +18,15 @@ # chromium can take 4 hours to build from source, with no signs of progress. # disable it if you're in a rush. # chromium = next.emptyDirectory; + + # TODO(2023/04/24): remove this. it's upstreamed for next staging-next `nix flake update` + sway-unwrapped = prev.sway-unwrapped.overrideAttrs (upstream: { + patches = upstream.patches or [] ++ [ + (next.fetchpatch { + name = "LIBINPUT_CONFIG_ACCEL_PROFILE_CUSTOM.patch"; + url = "https://github.com/swaywm/sway/commit/dee032d0a0ecd958c902b88302dc59703d703c7f.diff"; + hash = "sha256-dx+7MpEiAkxTBnJcsT3/1BO8rYRfNLecXmpAvhqGMD0="; + }) + ]; + }); })