libnatpmp: fix install
Import an upstream patch (which actually predates 2023-04-23!) to install natpmp_declspec.h, so that users of this library can be built.
This commit is contained in:
parent
e3cbd650f5
commit
7d7d7c754d
|
@ -1,4 +1,9 @@
|
||||||
{ lib, stdenv, fetchurl, fixDarwinDylibNames }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchurl
|
||||||
|
, fetchpatch
|
||||||
|
, fixDarwinDylibNames
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "libnatpmp";
|
pname = "libnatpmp";
|
||||||
|
@ -9,6 +14,14 @@ stdenv.mkDerivation rec {
|
||||||
hash = "sha256-BoTtLIQGQ351GaG9IOqDeA24cbOjpddSMRuj6Inb/HA=";
|
hash = "sha256-BoTtLIQGQ351GaG9IOqDeA24cbOjpddSMRuj6Inb/HA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# install natpmp_declspec.h too, else nothing that uses this library will build
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/miniupnp/libnatpmp/commit/5f4a7c65837a56e62c133db33c28cd1ea71db662.patch";
|
||||||
|
hash = "sha256-tvoGFmo5AzUgb40bIs/EzikE0ex1SFzE5peLXhktnbc=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
"INSTALLPREFIX=$(out)"
|
"INSTALLPREFIX=$(out)"
|
||||||
"CC:=$(CC)"
|
"CC:=$(CC)"
|
||||||
|
|
Loading…
Reference in a new issue