mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 04:31:52 +00:00
commit
4b43e72af7
|
@ -3,9 +3,9 @@
|
|||
, curl, tzdata, gdb, darwin
|
||||
, callPackage
|
||||
, bootstrapVersion ? false
|
||||
, version ? "2.078.1"
|
||||
, dmdSha256 ? "0b9lphh4g3r9cyzv4wcfppv9j3w952vvwv615za23acgwav3mqg2"
|
||||
, druntimeSha256 ? "16jv40m073cflpkyl0vmg1g58cianybfcsgcvwli7pfryxbgsbrr"
|
||||
, version ? "2.078.2"
|
||||
, dmdSha256 ? "0x9q4aw4jl36dz7m5111y2sm8jdaj3zg36zhj6vqg1lqpdn3bhls"
|
||||
, druntimeSha256 ? "0nfqjcmwqc490bzi3582x1c3zigkf306g4nyd1cyd3vs8lfm6x66"
|
||||
, phobosSha256 ? "08ircpf4ilznz638kra272hz8fi5ccvw2cswj5hqckssl1lyqzs8"
|
||||
}:
|
||||
|
||||
|
@ -111,7 +111,7 @@ let
|
|||
''
|
||||
|
||||
+ stdenv.lib.optionalString stdenv.hostPlatform.isLinux ''
|
||||
# See https://github.com/NixOS/nixpkgs/issues/29443
|
||||
# See https://github.com/dlang/phobos/pull/5960
|
||||
substituteInPlace phobos/std/path.d \
|
||||
--replace "\"/root" "\"${ROOT_HOME_DIR}"
|
||||
'';
|
||||
|
|
|
@ -4,7 +4,7 @@ let
|
|||
|
||||
dubBuild = stdenv.mkDerivation rec {
|
||||
name = "dubBuild-${version}";
|
||||
version = "1.7.1";
|
||||
version = "1.7.2";
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
|
@ -12,9 +12,13 @@ let
|
|||
owner = "dlang";
|
||||
repo = "dub";
|
||||
rev = "v${version}";
|
||||
sha256 = "09bcc9bq2z1rbm8sdip1l81y5p8q13r30k02lzifyasiplrnpvlv";
|
||||
sha256 = "073ibvgm1gphcqs1yjrav9ryp677nh3b194nxmvicwgvdc0sb6w9";
|
||||
};
|
||||
|
||||
postUnpack = ''
|
||||
patchShebangs .
|
||||
'';
|
||||
|
||||
patches = [
|
||||
# TODO Remove with next release which contains https://github.com/dlang/dub/pull/1354
|
||||
(fetchpatch {
|
||||
|
@ -23,12 +27,11 @@ let
|
|||
})
|
||||
];
|
||||
|
||||
# Can be removed with https://github.com/dlang/dub/pull/1368
|
||||
dubvar = "\\$DUB";
|
||||
postPatch = ''
|
||||
# Avoid that the version file is overwritten
|
||||
substituteInPlace build.sh \
|
||||
--replace source/dub/version_.d /dev/null
|
||||
|
||||
patchShebangs .
|
||||
substituteInPlace test/fetchzip.sh \
|
||||
--replace "dub remove" "\"${dubvar}\" remove"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ dmd libevent rsync ];
|
||||
|
@ -70,6 +73,7 @@ let
|
|||
|
||||
patches = dubBuild.patches;
|
||||
|
||||
postUnpack = dubBuild.postUnpack;
|
||||
postPatch = dubBuild.postPatch;
|
||||
|
||||
nativeBuildInputs = dubBuild.nativeBuildInputs;
|
||||
|
|
|
@ -2,14 +2,14 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "dtools-${version}";
|
||||
version = "2.078.1";
|
||||
version = "2.078.2";
|
||||
|
||||
srcs = [
|
||||
(fetchFromGitHub {
|
||||
owner = "dlang";
|
||||
repo = "dmd";
|
||||
rev = "v${version}";
|
||||
sha256 = "0b9lphh4g3r9cyzv4wcfppv9j3w952vvwv615za23acgwav3mqg2";
|
||||
sha256 = "0x9q4aw4jl36dz7m5111y2sm8jdaj3zg36zhj6vqg1lqpdn3bhls";
|
||||
name = "dmd";
|
||||
})
|
||||
(fetchFromGitHub {
|
||||
|
@ -28,23 +28,11 @@ stdenv.mkDerivation rec {
|
|||
cd dtools
|
||||
'';
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace posix.mak \
|
||||
--replace "../dmd/generated/\$(OS)/release/\$(MODEL)/dmd" ${dmd.out}/bin/dmd
|
||||
|
||||
substituteInPlace posix.mak \
|
||||
--replace gcc $CC
|
||||
|
||||
# To fix rdmd test with newer phobos
|
||||
substituteInPlace rdmd.d \
|
||||
--replace " std.stdiobase," ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ dmd ];
|
||||
buildInputs = [ curl ];
|
||||
|
||||
makeCmd = ''
|
||||
make -f posix.mak DMD=${dmd.out}/bin/dmd DMD_DIR=dmd
|
||||
make -f posix.mak DMD_DIR=dmd DMD=${dmd.out}/bin/dmd CC=${stdenv.cc}/bin/cc
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
|
|
Loading…
Reference in a new issue