aboutsummaryrefslogtreecommitdiff
path: root/default.nix
blob: 638cbcca360e44fd543facdc12c4f6f023942206 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ stdenv, ghc, haskell, biohazardSrc }:

let
  ghcP = with haskell.lib;
    ghc.withPackages (pkgs:
      with pkgs;
      [
        (doJailbreak (markUnbroken
          (biohazard.overrideAttrs (_: { src = biohazardSrc; patches = [ ./biohazard.patch ];}))))
      ]);
in stdenv.mkDerivation {
  name = "xenomapper-hs";
  buildInputs = [ ghcP ];
  src = ./.;
  buildPhase = ''
    ghc -O3 xenomapper.hs -o xenomapper
  '';
  installPhase = ''
    install -D xenomapper $out/bin/xenomapper
  '';
}