mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
fbe0533659
Fixes: CVE-2021-29462
48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
{ fetchFromGitHub
|
|
, lib
|
|
, stdenv
|
|
, cmake
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libupnp";
|
|
version = "1.14.6";
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pupnp";
|
|
repo = "pupnp";
|
|
rev = "release-${version}";
|
|
sha256 = "1f9861q5dicp6rx3jnp1j788xfjfaf3k4620p9r0b0k0lj2gk38c";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
];
|
|
|
|
postPatch = ''
|
|
# Wrong paths in pkg-config file generated by CMake
|
|
# https://github.com/pupnp/pupnp/pull/205/files#r588946478
|
|
substituteInPlace CMakeLists.txt \
|
|
--replace '\''${exec_prefix}/' "" \
|
|
--replace '\''${prefix}/' ""
|
|
'';
|
|
|
|
meta = {
|
|
description = "An open source UPnP development kit for Linux";
|
|
|
|
longDescription = ''
|
|
The Linux SDK for UPnP Devices (libupnp) provides developers
|
|
with an API and open source code for building control points,
|
|
devices, and bridges that are compliant with Version 1.0 of the
|
|
UPnP Device Architecture Specification.
|
|
'';
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
homepage = "https://pupnp.github.io/pupnp/";
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|