nixpkgs/pkgs/development/libraries/pupnp/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

48 lines
1.1 KiB
Nix

{ fetchFromGitHub
, lib
, stdenv
, cmake
}:
stdenv.mkDerivation rec {
pname = "libupnp";
version = "1.14.18";
outputs = [ "out" "dev" ];
src = fetchFromGitHub {
owner = "pupnp";
repo = "pupnp";
rev = "release-${version}";
sha256 = "sha256-eQKtZioZjI53J1fsoer032pzqebbK5IabOnkAXwBPos=";
};
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 = "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;
};
}