summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2019-02-24 12:36:27 -0800
committerBen Sima <ben@bsima.me>2019-02-24 12:36:27 -0800
commitaee2750000526b0cdd658aadaf7d7500ff881ed3 (patch)
tree74e1b088b21b9fe3160e2f573a996c7a532bb6a6
parentd7a4001972fc659a25b20e95408fe939c5faced9 (diff)
Extract entrypoint to param
-rw-r--r--pack/ibb.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pack/ibb.nix b/pack/ibb.nix
index 4224974..bd72310 100644
--- a/pack/ibb.nix
+++ b/pack/ibb.nix
@@ -10,6 +10,7 @@ let
shakespeare
text
]);
+ entrypoint = "Ibb";
in
stdenv.mkDerivation rec {
name = "ibb";
@@ -20,7 +21,9 @@ stdenv.mkDerivation rec {
];
strictDeps = true;
buildPhase = ''
- ${ghc}/bin/ghc -iapex -ilore -main-is Ibb --make apex/Ibb.hs -o bild/${name}
+ ${ghc}/bin/ghc -iapex -ilore \
+ -main-is ${entrypoint} --make apex/${entrypoint}.hs \
+ -o bild/${name}
'';
installPhase = ''
mkdir -p $out/bin