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:
Beardhatcode 2023-04-12 21:51:27 +02:00
parent 5f4e07deb7
commit 686405228b

View file

@ -4,7 +4,7 @@ assert dcompiler != null;
stdenv.mkDerivation rec {
pname = "dub";
version = "1.23.0";
version = "1.30.0";
enableParallelBuilding = true;
@ -12,16 +12,15 @@ stdenv.mkDerivation rec {
owner = "dlang";
repo = "dub";
rev = "v${version}";
sha256 = "06a4whsl1m600k096nwif83n7za3vr7pj1xwapncy5fcad1gmady";
sha256 = "sha256-iVl7bjblvIxvrUX7Phq6h4AIAmZjNVkGYYFA1hhsE7c=";
};
postUnpack = ''
patchShebangs .
'';
# Can be removed with https://github.com/dlang/dub/pull/1368
dubvar = "\\$DUB";
postPatch = ''
patchShebangs test
# Can be removed with https://github.com/dlang/dub/pull/1368
substituteInPlace test/fetchzip.sh \
--replace "dub remove" "\"${dubvar}\" remove"
'';
@ -50,7 +49,7 @@ stdenv.mkDerivation rec {
checkPhase = ''
export DUB=$NIX_BUILD_TOP/source/bin/dub
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"
export HOME=$TMP
@ -103,6 +102,7 @@ stdenv.mkDerivation rec {
rm test/single-file-sdl-default-name.sh
rm test/subpackage-common-with-sourcefile-globbing.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-exec-simple-package-json
rm -r test/1-exec-simple
@ -136,6 +136,7 @@ stdenv.mkDerivation rec {
rm -r test/issue97-targettype-none-onerecipe
rm -r test/path-subpackage-ref
rm -r test/sdl-package-simple
rm -r test/dpath-variable # requires execution of dpath-variable.sh
./test/run-unittest.sh
'';