1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00

Merge pull request #21898 from matthewbauer/darwintools

DarwinTools: init at 1
This commit is contained in:
Daiderd Jordan 2017-01-15 10:11:39 +01:00 committed by GitHub
commit d6517b6e5e
2 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,31 @@
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "DarwinTools-1";
src = fetchurl {
url = "https://opensource.apple.com/tarballs/DarwinTools/${name}.tar.gz";
sha256 = "0hh4jl590jv3v830p77r3jcrnpndy7p2b8ajai3ldpnx2913jfhp";
};
patchPhase = ''
substituteInPlace Makefile \
--replace gcc cc
'';
configurePhase = ''
export SRCROOT=.
export SYMROOT=.
export DSTROOT=$out
'';
postInstall = ''
mv $out/usr/* $out
rmdir $out/usr
'';
meta = {
maintainers = [ stdenv.lib.maintainers.matthewbauer ];
platforms = stdenv.lib.platforms.darwin;
};
}

View file

@ -10906,6 +10906,8 @@ in
stubs = callPackages ../os-specific/darwin/stubs {};
usr-include = callPackage ../os-specific/darwin/usr-include {};
DarwinTools = callPackage ../os-specific/darwin/DarwinTools {};
};
devicemapper = lvm2;