diff --git a/pkgs/development/libraries/cxxtest/default.nix b/pkgs/development/libraries/cxxtest/default.nix index d24ebf7739a..91fb94ec048 100644 --- a/pkgs/development/libraries/cxxtest/default.nix +++ b/pkgs/development/libraries/cxxtest/default.nix @@ -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";