f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
25 lines
547 B
Nix
25 lines
547 B
Nix
{
|
|
stdenvNoCC,
|
|
buildPackages,
|
|
darwin-stubs,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation {
|
|
pname = "libpm";
|
|
inherit (darwin-stubs) version;
|
|
|
|
dontUnpack = true;
|
|
dontBuild = true;
|
|
|
|
nativeBuildInputs = [ buildPackages.darwin.checkReexportsHook ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/lib
|
|
cp ${darwin-stubs}/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";
|
|
};
|
|
}
|