dub: 1.23.0 -> 1.30.0
Bump dub to latest version https://github.com/dlang/dub/releases/tag/v1.30.0
This commit is contained in:
parent
5f4e07deb7
commit
686405228b
1 changed files with 11 additions and 10 deletions
|
@ -4,7 +4,7 @@ assert dcompiler != null;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "dub";
|
pname = "dub";
|
||||||
version = "1.23.0";
|
version = "1.30.0";
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
@ -12,16 +12,15 @@ stdenv.mkDerivation rec {
|
||||||
owner = "dlang";
|
owner = "dlang";
|
||||||
repo = "dub";
|
repo = "dub";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "06a4whsl1m600k096nwif83n7za3vr7pj1xwapncy5fcad1gmady";
|
sha256 = "sha256-iVl7bjblvIxvrUX7Phq6h4AIAmZjNVkGYYFA1hhsE7c=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postUnpack = ''
|
|
||||||
patchShebangs .
|
|
||||||
'';
|
|
||||||
|
|
||||||
# Can be removed with https://github.com/dlang/dub/pull/1368
|
|
||||||
dubvar = "\\$DUB";
|
dubvar = "\\$DUB";
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
patchShebangs test
|
||||||
|
|
||||||
|
|
||||||
|
# Can be removed with https://github.com/dlang/dub/pull/1368
|
||||||
substituteInPlace test/fetchzip.sh \
|
substituteInPlace test/fetchzip.sh \
|
||||||
--replace "dub remove" "\"${dubvar}\" remove"
|
--replace "dub remove" "\"${dubvar}\" remove"
|
||||||
'';
|
'';
|
||||||
|
@ -50,7 +49,7 @@ stdenv.mkDerivation rec {
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
export DUB=$NIX_BUILD_TOP/source/bin/dub
|
export DUB=$NIX_BUILD_TOP/source/bin/dub
|
||||||
export PATH=$PATH:$NIX_BUILD_TOP/source/bin/
|
export PATH=$PATH:$NIX_BUILD_TOP/source/bin/
|
||||||
export DC=${dcompiler.out}/bin/${dcompiler.pname}
|
export DC=${dcompiler.out}/bin/${if dcompiler.pname=="ldc" then "ldc2" else dcompiler.pname}
|
||||||
echo "DC out --> $DC"
|
echo "DC out --> $DC"
|
||||||
export HOME=$TMP
|
export HOME=$TMP
|
||||||
|
|
||||||
|
@ -103,6 +102,7 @@ stdenv.mkDerivation rec {
|
||||||
rm test/single-file-sdl-default-name.sh
|
rm test/single-file-sdl-default-name.sh
|
||||||
rm test/subpackage-common-with-sourcefile-globbing.sh
|
rm test/subpackage-common-with-sourcefile-globbing.sh
|
||||||
rm test/issue934-path-dep.sh
|
rm test/issue934-path-dep.sh
|
||||||
|
rm -r test/issue2258-dynLib-exe-dep # requires files below
|
||||||
rm -r test/1-dynLib-simple
|
rm -r test/1-dynLib-simple
|
||||||
rm -r test/1-exec-simple-package-json
|
rm -r test/1-exec-simple-package-json
|
||||||
rm -r test/1-exec-simple
|
rm -r test/1-exec-simple
|
||||||
|
@ -136,6 +136,7 @@ stdenv.mkDerivation rec {
|
||||||
rm -r test/issue97-targettype-none-onerecipe
|
rm -r test/issue97-targettype-none-onerecipe
|
||||||
rm -r test/path-subpackage-ref
|
rm -r test/path-subpackage-ref
|
||||||
rm -r test/sdl-package-simple
|
rm -r test/sdl-package-simple
|
||||||
|
rm -r test/dpath-variable # requires execution of dpath-variable.sh
|
||||||
|
|
||||||
./test/run-unittest.sh
|
./test/run-unittest.sh
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue