diff options
-rw-r--r-- | server/wrapped.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/wrapped.nix b/server/wrapped.nix index 2d16786..04a483b 100644 --- a/server/wrapped.nix +++ b/server/wrapped.nix | |||
@@ -1,6 +1,7 @@ | |||
1 | { stdenv, makeWrapper | 1 | { stdenv, makeWrapper |
2 | , ghcWithPackages | 2 | , ghcWithPackages |
3 | , thermoprint-server | 3 | , thermoprint-server |
4 | , extraPackages ? (p: []) | ||
4 | }: | 5 | }: |
5 | 6 | ||
6 | stdenv.lib.overrideDerivation thermoprint-server (oldAttrs: { | 7 | stdenv.lib.overrideDerivation thermoprint-server (oldAttrs: { |
@@ -8,6 +9,6 @@ stdenv.lib.overrideDerivation thermoprint-server (oldAttrs: { | |||
8 | buildInputs = [makeWrapper]; | 9 | buildInputs = [makeWrapper]; |
9 | postInstall = '' | 10 | postInstall = '' |
10 | wrapProgram $out/bin/thermoprint-server \ | 11 | wrapProgram $out/bin/thermoprint-server \ |
11 | --set NIX_GHC ${ghcWithPackages (p: [thermoprint-server])}/bin/ghc | 12 | --set NIX_GHC ${ghcWithPackages (p: [thermoprint-server] ++ extraPackages p)}/bin/ghc |
12 | ''; | 13 | ''; |
13 | }) | 14 | }) |