nixpkgs/pkgs/by-name/dt/dtools/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
951 B
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, ldc
, curl
}:
stdenv.mkDerivation (finalAttrs: {
pname = "dtools";
2024-07-02 14:15:59 +01:00
version = "2.109.1";
2021-11-24 05:12:55 +00:00
src = fetchFromGitHub {
owner = "dlang";
repo = "tools";
rev = "v${finalAttrs.version}";
2024-07-02 14:15:59 +01:00
hash = "sha256-Pfj8Kwf5AlcrHhLs5A/0vIFWLZaNR3ro+esbs7oWN9I=";
2021-11-24 05:12:55 +00:00
name = "dtools";
};
patches = [
# Disable failing tests
./disabled-tests.diff
# Fix LDC arm64 build
./fix-ldc-arm64.diff
2018-01-06 22:28:07 +00:00
];
nativeBuildInputs = [ ldc ];
buildInputs = [ curl ];
makeFlags = [
"CC=${stdenv.cc}/bin/cc"
"DMD=${ldc.out}/bin/ldmd2"
"INSTALL_DIR=$(out)"
];
2018-01-06 22:28:07 +00:00
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;
};
})