mosdeph: fix compilation with nim 0.19
This commit is contained in:
parent
9dcdf5a545
commit
bb2bae6986
@ -4,8 +4,8 @@ let
|
|||||||
hts-nim = fetchFromGitHub {
|
hts-nim = fetchFromGitHub {
|
||||||
owner = "brentp";
|
owner = "brentp";
|
||||||
repo = "hts-nim";
|
repo = "hts-nim";
|
||||||
rev = "9cd83e30522ab64cd71eb8209be4154aa5579ce1";
|
rev = "v0.2.5";
|
||||||
sha256 = "10g408idy14667varq1syf06rrbpk63i3ib7i5dh1md4ib19av6f";
|
sha256 = "1fma99rjqxgg9dihkd10hm1jjp5amsk5wsxnvq1lk4mcsjix5xqb";
|
||||||
};
|
};
|
||||||
|
|
||||||
docopt = fetchFromGitHub {
|
docopt = fetchFromGitHub {
|
||||||
@ -28,7 +28,10 @@ in stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = [ nim ];
|
buildInputs = [ nim ];
|
||||||
|
|
||||||
buildPhase = "nim -p:${hts-nim}/src -p:${docopt}/src c -d:release mosdepth.nim";
|
buildPhase = ''
|
||||||
|
HOME=$TMPDIR
|
||||||
|
nim -p:${hts-nim}/src -p:${docopt}/src c --nilseqs:on -d:release mosdepth.nim
|
||||||
|
'';
|
||||||
installPhase = "install -Dt $out/bin mosdepth";
|
installPhase = "install -Dt $out/bin mosdepth";
|
||||||
fixupPhase = "patchelf --set-rpath ${stdenv.lib.makeLibraryPath [ stdenv.cc.cc htslib pcre ]} $out/bin/mosdepth";
|
fixupPhase = "patchelf --set-rpath ${stdenv.lib.makeLibraryPath [ stdenv.cc.cc htslib pcre ]} $out/bin/mosdepth";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user