@@ -4,8 +4,8 @@ let
44 hts-nim = fetchFromGitHub {
55 owner = "brentp";
66 repo = "hts-nim";
7− rev = "9cd83e30522ab64cd71eb8209be4154aa5579ce1";
8− sha256 = "10g408idy14667varq1syf06rrbpk63i3ib7i5dh1md4ib19av6f";
7+ rev = "v0.2.5";
8+ sha256 = "1fma99rjqxgg9dihkd10hm1jjp5amsk5wsxnvq1lk4mcsjix5xqb";
99 };
1010
1111 docopt = fetchFromGitHub {
@@ -28,7 +28,10 @@ in stdenv.mkDerivation rec {
2828
2929 buildInputs = [ nim ];
3030
31− buildPhase = "nim -p:${hts-nim}/src -p:${docopt}/src c -d:release mosdepth.nim";
31+ buildPhase = ''
32+ HOME=$TMPDIR
33+ nim -p:${hts-nim}/src -p:${docopt}/src c --nilseqs:on -d:release mosdepth.nim
34+ '';
3235 installPhase = "install -Dt $out/bin mosdepth";
3336 fixupPhase = "patchelf --set-rpath ${stdenv.lib.makeLibraryPath [ stdenv.cc.cc htslib pcre ]} $out/bin/mosdepth";
3437