Skip to content

Commit

Permalink
fix(nix): don't ship dev tools within the production closure (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
blackheaven authored and TristanCacqueray committed Feb 4, 2024
1 parent 23c7af5 commit 5142ea6
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
jailbreakUnbreak = pkg:
pkgs.haskell.lib.doJailbreak (pkgs.haskell.lib.dontCheck (pkgs.haskell.lib.unmarkBroken pkg));

cvss = pkgs.haskellPackages.callCabal2nix "cvss" ./code/cvss {};
osv = pkgs.haskellPackages.callCabal2nix "osv" ./code/osv {inherit cvss;};
cvss = pkgs.haskellPackages.callCabal2nix "cvss" ./code/cvss { };
osv = pkgs.haskellPackages.callCabal2nix "osv" ./code/osv { inherit cvss; };
hsec-core = pkgs.haskellPackages.callCabal2nix "hsec-core" ./code/hsec-core {
inherit cvss osv;
Cabal-syntax = pkgs.haskellPackages.Cabal-syntax_3_8_1_0;
Expand All @@ -39,14 +39,18 @@
};

modifier = drv:
pkgs.haskell.lib.addBuildTools drv (with pkgs.haskellPackages;
[
cabal-fmt
cabal-install
ghcid
haskell-language-server
pkgs.nixpkgs-fmt
]);
if returnShellEnv
then
pkgs.haskell.lib.addBuildTools drv
(with pkgs.haskellPackages;
[
cabal-fmt
cabal-install
ghcid
haskell-language-server
pkgs.nixpkgs-fmt
])
else drv;
};

gitconfig =
Expand Down

0 comments on commit 5142ea6

Please sign in to comment.