aboutsummaryrefslogtreecommitdiff
path: root/server/wrapped.nix
blob: 2d16786ccb37039f9c9ee42af879deca3f703172 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{ stdenv, makeWrapper
, ghcWithPackages
, thermoprint-server
}:

stdenv.lib.overrideDerivation thermoprint-server (oldAttrs: {
  name = "${oldAttrs.name}-wrapper";
  buildInputs = [makeWrapper];
  postInstall = ''
    wrapProgram $out/bin/thermoprint-server \
      --set NIX_GHC ${ghcWithPackages (p: [thermoprint-server])}/bin/ghc
  '';
})