diff options
author | Justin Bedo <cu@cua0.org> | 2021-07-29 16:19:30 +1000 |
---|---|---|
committer | Justin Bedo <cu@cua0.org> | 2021-07-29 16:19:30 +1000 |
commit | 7c29ef494f974b457bfef6a5af7d37fa03bb7952 (patch) | |
tree | 75362d1414bb373c50a54982f69aa31c558bf027 /default.nix |
initial import
Diffstat (limited to 'default.nix')
-rw-r--r-- | default.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..3314d66 --- /dev/null +++ b/default.nix @@ -0,0 +1,21 @@ +let + pkgs = import <nixpkgs> { }; + + ghc = with pkgs.haskell.lib; + pkgs.ghc.withPackages (pkgs: + with pkgs; + [ + (doJailbreak (markUnbroken + (biohazard.overrideAttrs (_: { patches = [ ./biohazard.patch ]; })))) + ]); +in pkgs.stdenv.mkDerivation { + name = "xenomapper-hs"; + buildInputs = [ ghc ]; + src = ./.; + buildPhase = '' + ghc -O3 xenomapper.hs -o xenomapper + ''; + installPhase = '' + install -D xenomapper $out/bin/xenomapper + ''; +} |