Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
50 lines
958 B
Nix
50 lines
958 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
ldc,
|
|
curl,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "dtools";
|
|
version = "2.110.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dlang";
|
|
repo = "tools";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-xMEHnrstL5hAkhp8+/z1I2KZWZ7eztWZnUGLTKCfbBI=";
|
|
name = "dtools";
|
|
};
|
|
|
|
patches = [
|
|
# Disable failing tests
|
|
./disabled-tests.diff
|
|
# Fix LDC arm64 build
|
|
./fix-ldc-arm64.diff
|
|
];
|
|
|
|
nativeBuildInputs = [ ldc ];
|
|
buildInputs = [ curl ];
|
|
|
|
makeFlags = [
|
|
"CC=${stdenv.cc}/bin/cc"
|
|
"DMD=${ldc.out}/bin/ldmd2"
|
|
"INSTALL_DIR=$(out)"
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
doCheck = true;
|
|
checkTarget = "test_rdmd";
|
|
|
|
meta = with lib; {
|
|
description = "Ancillary tools for the D programming language";
|
|
homepage = "https://github.com/dlang/tools";
|
|
license = licenses.boost;
|
|
maintainers = with maintainers; [ jtbx ];
|
|
platforms = platforms.unix;
|
|
};
|
|
})
|