uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
47
pkgs/development/libraries/pupnp/default.nix
Normal file
47
pkgs/development/libraries/pupnp/default.nix
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
{ fetchFromGitHub
|
||||
, lib
|
||||
, stdenv
|
||||
, cmake
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libupnp";
|
||||
version = "1.14.12";
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pupnp";
|
||||
repo = "pupnp";
|
||||
rev = "release-${version}";
|
||||
sha256 = "sha256-ZJ74x5+4dDb5sJ1cPtlin6iunGyu8boNSpfLFB1mCME=";
|
||||
};
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue