Skip to content

Commit 9ee5650

Browse files
committed
nix backend: fix nix impure builds
1 parent 92a87f8 commit 9ee5650

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

govtool/backend/default.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ pkgs ? import <nixpkgs> { }, incl }:
1+
{ pkgs ? import <nixpkgs> { }, incl, returnShellEnv ? null }:
22
let
33
inherit (pkgs.lib.trivial) pipe;
44
inherit (pkgs) haskell;
@@ -21,7 +21,7 @@ let
2121

2222
modifier = drv: pipe drv [ appendLibraries appendTools ];
2323

24-
project = ghcPackages.developPackage {
24+
project = ghcPackages.developPackage ({
2525
root = incl ./. [
2626
./vva-be.cabal
2727
./app
@@ -30,7 +30,7 @@ let
3030
];
3131
modifier = modifier;
3232
overrides = self: super: { openapi3 = useBroken super.openapi3; };
33-
};
33+
} // pkgs.lib.optionalAttrs (returnShellEnv != null) { inherit returnShellEnv; });
3434
in project.overrideAttrs (oldAttrs: {
3535
shellHook = ''
3636
function warn() { tput setaf $2; echo "$1"; tput sgr0; }

0 commit comments

Comments
 (0)