From 883ebf4a646e52fb3bc9bffedf65bb834c5c0741 Mon Sep 17 00:00:00 2001 From: Malte Poll <1780588+malt3@users.noreply.github.com> Date: Thu, 1 Feb 2024 14:33:47 +0100 Subject: [PATCH] nix: minify genpolicy binary size Since we are embedding the genpolicy tool as part of the nunki cli, it is desirable to make the binary size smaller. This change takes the size from ~152M down to ~18M. --- packages/genpolicy_kata.nix | 3 --- packages/genpolicy_msft.nix | 3 --- 2 files changed, 6 deletions(-) diff --git a/packages/genpolicy_kata.nix b/packages/genpolicy_kata.nix index 23fdb57efd..69999f9672 100644 --- a/packages/genpolicy_kata.nix +++ b/packages/genpolicy_kata.nix @@ -30,9 +30,6 @@ rustPlatform.buildRustPackage rec { }; }; - dontStrip = true; - buildType = "debug"; - env.OPENSSL_NO_VENDOR = 1; nativeBuildInputs = [ diff --git a/packages/genpolicy_msft.nix b/packages/genpolicy_msft.nix index d29907589e..25713848ac 100644 --- a/packages/genpolicy_msft.nix +++ b/packages/genpolicy_msft.nix @@ -25,9 +25,6 @@ rustPlatform.buildRustPackage rec { cargoHash = "sha256-MRVtChYQkiU92n/z+5r4ge58t9yVeOCdqs0zx81IQUY="; - dontStrip = true; - buildType = "debug"; - OPENSSL_NO_VENDOR = 1; nativeBuildInputs = [