8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
31 lines
614 B
Nix
31 lines
614 B
Nix
{ 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;
|
|
};
|
|
}
|