cxxtest: use buildPythonApplication
This commit is contained in:
parent
0fbbf411b3
commit
6068431f8f
|
@ -1,30 +1,19 @@
|
||||||
{ stdenv, fetchFromGitHub, python2Packages}:
|
{ stdenv, fetchFromGitHub, python2Packages}:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (python2Packages) python wrapPython;
|
pname = "cxxtest";
|
||||||
in stdenv.mkDerivation rec {
|
|
||||||
version = "4.4";
|
version = "4.4";
|
||||||
name = "cxxtest";
|
in python2Packages.buildPythonApplication rec {
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "CxxTest";
|
owner = "CxxTest";
|
||||||
repo = name;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "19w92kipfhp5wvs47l0qpibn3x49sbmvkk91yxw6nwk6fafcdl17";
|
sha256 = "19w92kipfhp5wvs47l0qpibn3x49sbmvkk91yxw6nwk6fafcdl17";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ python wrapPython ];
|
sourceRoot = "${name}-src/python";
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
cd python
|
|
||||||
${python.interpreter} setup.py install --prefix=$out
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
mkdir -p $out/include
|
|
||||||
cp -R cxxtest $out/include/
|
|
||||||
|
|
||||||
wrapPythonProgramsIn $out/bin "$out $pythonPath"
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = "http://cxxtest.com";
|
homepage = "http://cxxtest.com";
|
||||||
|
|
Loading…
Reference in New Issue