blob: 2a2a1bff164776de86d522ad053b185f4f760059 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
{ stdenv
, ghcWithPackages
, makeWrapper
, opossum
, additionalPackages ? (p: [])
}:
let
myEnv = ghcWithPackages (p: with p; [ beuteltier opossum ] ++ additionalPackages p);
in stdenv.mkDerivation {
name = "opossum-wrapper";
nativeBuildInputs = [ makeWrapper ];
buildCommand = ''
mkdir -p $out/bin
makeWrapper ${opossum}/bin/opossum $out/bin/opossum \
--set NIX_GHC ${myEnv}/bin/ghc
'';
}
|