summary refs log tree commit diff
path: root/pkgs/os-specific/darwin/apple-source-releases/architecture/default.nix
blob: 2638a0afb76df7f3012a9f5a6cd0adb6cc22bbf9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ stdenv, appleDerivation }:

appleDerivation {
  postPatch = ''
    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;
  };
}