From e7069228a87c42124e7762b1bfd663b684e24749 Mon Sep 17 00:00:00 2001 From: sand20 Date: Thu, 16 Jun 2022 22:45:49 +0200 Subject: [PATCH] Strip ghc from final build --- flake.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 2bf68ef..f432e1b 100644 --- a/flake.nix +++ b/flake.nix @@ -28,9 +28,10 @@ builtins.foldl' (checks: ghcVersion: let haskellPackages = pkgs.haskell.packages.${ghcVersion}; + inherit (pkgs.haskell.lib.compose) justStaticExecutables; in checks // { - "${ghcVersion}".yammat = haskellPackages.callPackage ./pkg.nix {}; + "${ghcVersion}".yammat = justStaticExecutables(haskellPackages.callPackage ./pkg.nix {}); } ) {} ghcVersions;