2021-03-07 00:01:51 +00:00
|
|
|
{ fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, stdenv
|
|
|
|
, cmake
|
|
|
|
}:
|
2008-10-07 21:18:01 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "libupnp";
|
2021-11-03 11:45:50 +00:00
|
|
|
version = "1.14.12";
|
2021-03-07 00:01:51 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
2008-10-07 21:18:01 +00:00
|
|
|
|
2016-12-20 20:49:20 +00:00
|
|
|
src = fetchFromGitHub {
|
2021-04-21 13:22:00 +00:00
|
|
|
owner = "pupnp";
|
2016-12-20 20:49:20 +00:00
|
|
|
repo = "pupnp";
|
|
|
|
rev = "release-${version}";
|
2021-11-03 11:45:50 +00:00
|
|
|
sha256 = "sha256-ZJ74x5+4dDb5sJ1cPtlin6iunGyu8boNSpfLFB1mCME=";
|
2008-10-07 21:18:01 +00:00
|
|
|
};
|
|
|
|
|
2021-03-07 00:01:51 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
];
|
2016-12-20 20:49:20 +00:00
|
|
|
|
2021-03-07 00:01:51 +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}/' ""
|
|
|
|
'';
|
2015-12-23 01:59:47 +00:00
|
|
|
|
2008-10-07 21:18:01 +00:00
|
|
|
meta = {
|
2020-10-26 04:08:40 +00:00
|
|
|
description = "An open source UPnP development kit for Linux";
|
2008-10-07 21:18:01 +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-07 00:01:51 +00:00
|
|
|
license = lib.licenses.bsd3;
|
2008-10-07 21:18:01 +00:00
|
|
|
|
2021-03-07 00:01:51 +00:00
|
|
|
homepage = "https://pupnp.github.io/pupnp/";
|
2021-01-21 17:00:13 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2008-10-07 21:18:01 +00:00
|
|
|
};
|
|
|
|
}
|