mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-03 03:23:17 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
48 lines
1.1 KiB
Nix
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;
|
|
};
|
|
}
|