From 7992e915221d78eddda32f7306710b1c06e2935d Mon Sep 17 00:00:00 2001 From: Konstantin Shabanov Date: Sun, 1 Nov 2026 23:43:39 +0700 Subject: [PATCH 1/2] nix: Fix stripping Reduces prefix size from 7.6G to 3.1G. --- flake.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flake.nix b/flake.nix index 60ddcb702..a28d86842 100644 --- a/flake.nix +++ b/flake.nix @@ -109,6 +109,9 @@ in with pkgs; [ + (pkgs.writeShellScriptBin "${pkgs.stdenv.hostPlatform.system}-gnu-strip" '' + ${pkgs.bintools-unwrapped}/bin/strip $@ + '') ant autoconf autoreconf269 # gnu-binutils From aa6f01bfb24eff118f64d9d2d301aae71af5d06a Mon Sep 17 00:00:00 2001 From: Konstantin Shabanov Date: Thu, 1 Oct 2026 16:51:31 +0700 Subject: [PATCH 2/2] nix: Drop autoreconf2.69 workaround --- flake.nix | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index a28d86842..baf4da1fd 100644 --- a/flake.nix +++ b/flake.nix @@ -104,17 +104,13 @@ #TODO: This isn't tested yet, use at your own risk native = (pkgs.mkShell.override { stdenv = pkgs.gcc14Stdenv; }) rec { nativeBuildInputs = - let - autoreconf269 = pkgs.writeShellScriptBin "autoreconf2.69" "${pkgs.autoconf269}/bin/autoreconf"; - in with pkgs; [ (pkgs.writeShellScriptBin "${pkgs.stdenv.hostPlatform.system}-gnu-strip" '' ${pkgs.bintools-unwrapped}/bin/strip $@ '') ant - autoconf - autoreconf269 # gnu-binutils + autoconf269 automake bison cmake