2021-03-23 19:22:30 +00:00
|
|
|
{ fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, stdenv
|
|
|
|
, cmake
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libupnp";
|
2021-04-05 15:23:46 +00:00
|
|
|
version = "1.14.4";
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mrjimenez";
|
|
|
|
repo = "pupnp";
|
|
|
|
rev = "release-${version}";
|
2021-04-05 15:23:46 +00:00
|
|
|
sha256 = "sha256-4VuTbcEjr9Ffrowb3eOtXFU8zPNu1NXS531EOZpI07A=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-03-23 19:22:30 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-03-23 19:22:30 +00:00
|
|
|
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}/' ""
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
2020-11-03 02:18:15 +00:00
|
|
|
description = "An open source UPnP development kit for Linux";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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.
|
|
|
|
'';
|
|
|
|
|
2021-03-23 19:22:30 +00:00
|
|
|
license = lib.licenses.bsd3;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-03-23 19:22:30 +00:00
|
|
|
homepage = "https://pupnp.github.io/pupnp/";
|
2021-02-05 17:12:51 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|