Skip to content

Commit 8de4530

Browse files
committedJun 28, 2017
Add static binary for stack2nix
1 parent cc63c5d commit 8de4530

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎pkgs/top-level/all-packages.nix

+8
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,14 @@ with pkgs;
771771
'';
772772
});
773773

774+
stack2nix = with haskell.lib; overrideCabal (justStaticExecutables haskellPackages.stack2nix) (drv: {
775+
executableToolDepends = [ makeWrapper ];
776+
postInstall = ''
777+
wrapProgram $out/bin/stack2nix \
778+
--prefix PATH ":" "${git}/bin:${cabal2nix}/bin:${cabal-install}/bin"
779+
'';
780+
});
781+
774782
caddy = callPackage ../servers/caddy { };
775783

776784
capstone = callPackage ../development/libraries/capstone { };

0 commit comments

Comments
 (0)
Please sign in to comment.