mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 06:45:54 +03:00
24 lines
493 B
Nix
24 lines
493 B
Nix
{ stdenv, appleDerivation }:
|
|
|
|
appleDerivation {
|
|
phases = [ "unpackPhase" "installPhase" ];
|
|
|
|
postUnpack = ''
|
|
substituteInPlace $sourceRoot/Makefile \
|
|
--replace "/usr/include" "/include" \
|
|
--replace "/usr/bin/" "" \
|
|
--replace "/bin/" ""
|
|
'';
|
|
|
|
installPhase = ''
|
|
export DSTROOT=$out
|
|
make install
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
maintainers = with maintainers; [ copumpkin ];
|
|
platforms = platforms.darwin;
|
|
license = licenses.apsl20;
|
|
};
|
|
}
|