0d9fc34957
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
23 lines
537 B
Nix
23 lines
537 B
Nix
{ stdenvNoCC, MacOSX-SDK, checkReexportsHook }:
|
|
|
|
stdenvNoCC.mkDerivation {
|
|
pname = "libpm";
|
|
version = MacOSX-SDK.version;
|
|
|
|
dontUnpack = true;
|
|
dontBuild = true;
|
|
|
|
nativeBuildInputs = [ checkReexportsHook ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/lib
|
|
cp ${MacOSX-SDK}/usr/lib/libpm* $out/lib
|
|
'';
|
|
|
|
passthru = {
|
|
tbdRewrites = {
|
|
const."/usr/lib/libpmenergy.dylib" = "${placeholder "out"}/lib/libpmenergy.dylib";
|
|
const."/usr/lib/libpmsample.dylib" = "${placeholder "out"}/lib/libpmsample.dylib";
|
|
};
|
|
};
|
|
}
|