mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-08 06:28:50 +03:00
Merge pull request #107863 from SuperSandro2000/properties-cpp-buildinputs
properties-cpp: move cmake, pkg-config to nativeBuildInputs, clean up
This commit is contained in:
commit
56bb1b0f7a
@ -1,27 +1,35 @@
|
|||||||
{ stdenv, fetchurl, cmake, pkgconfig, gtest, doxygen
|
{ stdenv
|
||||||
, graphviz, lcov }:
|
, fetchurl
|
||||||
|
, cmake
|
||||||
|
, pkg-config
|
||||||
|
, gtest
|
||||||
|
, doxygen
|
||||||
|
, graphviz
|
||||||
|
, lcov
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "properties-cpp";
|
pname = "properties-cpp";
|
||||||
version = "0.0.1";
|
version = "0.0.1";
|
||||||
|
|
||||||
src = let srcver = version+"+14.10.20140730"; in
|
src = let srcver = "${version}+14.10.20140730"; in
|
||||||
fetchurl {
|
fetchurl {
|
||||||
url = "https://launchpad.net/ubuntu/+archive/primary/+files/${pname}_${srcver}.orig.tar.gz";
|
url = "https://launchpad.net/ubuntu/+archive/primary/+files/${pname}_${srcver}.orig.tar.gz";
|
||||||
sha256 = "08vjyv7ibn6jh2ikj5v48kjpr3n6hlkp9qlvdn8r0vpiwzah0m2w";
|
sha256 = "08vjyv7ibn6jh2ikj5v48kjpr3n6hlkp9qlvdn8r0vpiwzah0m2w";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ cmake gtest doxygen pkgconfig graphviz lcov ];
|
postPatch = ''
|
||||||
|
|
||||||
patchPhase = ''
|
|
||||||
sed -i "/add_subdirectory(tests)/d" CMakeLists.txt
|
sed -i "/add_subdirectory(tests)/d" CMakeLists.txt
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [ cmake pkg-config ];
|
||||||
|
|
||||||
|
buildInputs = [ gtest doxygen graphviz lcov ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = "https://launchpad.net/properties-cpp";
|
homepage = "https://launchpad.net/properties-cpp";
|
||||||
description = "A very simple convenience library for handling properties and signals in C++11";
|
description = "A very simple convenience library for handling properties and signals in C++11";
|
||||||
license = licenses.lgpl3;
|
license = licenses.lgpl3Only;
|
||||||
maintainers = with maintainers; [ edwtjo ];
|
maintainers = with maintainers; [ edwtjo ];
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user