mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
DarwinTools: init at 1
This commit is contained in:
parent
9e4538112a
commit
6f72be9962
31
pkgs/os-specific/darwin/DarwinTools/default.nix
Normal file
31
pkgs/os-specific/darwin/DarwinTools/default.nix
Normal 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;
|
||||
};
|
||||
}
|
@ -10724,6 +10724,8 @@ in
|
||||
stubs = callPackages ../os-specific/darwin/stubs {};
|
||||
|
||||
usr-include = callPackage ../os-specific/darwin/usr-include {};
|
||||
|
||||
DarwinTools = callPackage ../os-specific/darwin/DarwinTools {};
|
||||
};
|
||||
|
||||
devicemapper = lvm2;
|
||||
|
Loading…
Reference in New Issue
Block a user