cxxtest: use buildPythonApplication
This commit is contained in:
parent
0fbbf411b3
commit
6068431f8f
|
@ -1,30 +1,19 @@
|
|||
{ stdenv, fetchFromGitHub, python2Packages}:
|
||||
|
||||
let
|
||||
inherit (python2Packages) python wrapPython;
|
||||
in stdenv.mkDerivation rec {
|
||||
pname = "cxxtest";
|
||||
version = "4.4";
|
||||
name = "cxxtest";
|
||||
in python2Packages.buildPythonApplication rec {
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "CxxTest";
|
||||
repo = name;
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "19w92kipfhp5wvs47l0qpibn3x49sbmvkk91yxw6nwk6fafcdl17";
|
||||
};
|
||||
|
||||
buildInputs = [ python wrapPython ];
|
||||
|
||||
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"
|
||||
'';
|
||||
sourceRoot = "${name}-src/python";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "http://cxxtest.com";
|
||||
|
|
Loading…
Reference in New Issue