libnatpmp: fix dyld path on darwin

This solves #164240
This commit is contained in:
larsr 2022-03-15 11:06:08 +01:00 committed by GitHub
parent efe0307291
commit 58e32427d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl }:
{ lib, stdenv, fetchurl, fixDarwinDylibNames }:
stdenv.mkDerivation rec {
pname = "libnatpmp";
@ -15,6 +15,8 @@ stdenv.mkDerivation rec {
"CC:=$(CC)"
];
nativeBuildInputs = lib.optional stdenv.isDarwin fixDarwinDylibNames;
postFixup = ''
chmod +x $out/lib/*
'';