uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
51
pkgs/development/tools/dtools/default.nix
Normal file
51
pkgs/development/tools/dtools/default.nix
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
{stdenv, lib, fetchFromGitHub, fetchpatch, ldc, curl}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "dtools";
|
||||
version = "2.095.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dlang";
|
||||
repo = "tools";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256:0rdfk3mh3fjrb0h8pr8skwlq6ac9hdl1fkrkdl7n1fa2806b740b";
|
||||
name = "dtools";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
# part of https://github.com/dlang/tools/pull/441
|
||||
url = "https://github.com/dlang/tools/commit/6c6a042d1b08e3ec1790bd07a7f69424625ee866.patch"; # Fix LDC arm64 build
|
||||
sha256 = "sha256-x6EclTYN1Y5FG57KLhbBK0BZicSYcZoWO7MTVcP4T18=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ ldc ];
|
||||
buildInputs = [ curl ];
|
||||
|
||||
makeCmd = ''
|
||||
make -f posix.mak all DMD_DIR=dmd DMD=${ldc.out}/bin/ldmd2 CC=${stdenv.cc}/bin/cc
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
$makeCmd
|
||||
'';
|
||||
|
||||
doCheck = true;
|
||||
|
||||
checkPhase = ''
|
||||
$makeCmd test_rdmd
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
$makeCmd INSTALL_DIR=$out install
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Ancillary tools for the D programming language compiler";
|
||||
homepage = "https://github.com/dlang/tools";
|
||||
license = lib.licenses.boost;
|
||||
maintainers = with maintainers; [ ThomasMader ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue