We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92a87f8 commit 9ee5650Copy full SHA for 9ee5650
govtool/backend/default.nix
@@ -1,4 +1,4 @@
1
-{ pkgs ? import <nixpkgs> { }, incl }:
+{ pkgs ? import <nixpkgs> { }, incl, returnShellEnv ? null }:
2
let
3
inherit (pkgs.lib.trivial) pipe;
4
inherit (pkgs) haskell;
@@ -21,7 +21,7 @@ let
21
22
modifier = drv: pipe drv [ appendLibraries appendTools ];
23
24
- project = ghcPackages.developPackage {
+ project = ghcPackages.developPackage ({
25
root = incl ./. [
26
./vva-be.cabal
27
./app
@@ -30,7 +30,7 @@ let
30
];
31
modifier = modifier;
32
overrides = self: super: { openapi3 = useBroken super.openapi3; };
33
- };
+ } // pkgs.lib.optionalAttrs (returnShellEnv != null) { inherit returnShellEnv; });
34
in project.overrideAttrs (oldAttrs: {
35
shellHook = ''
36
function warn() { tput setaf $2; echo "$1"; tput sgr0; }
0 commit comments