From 9820cb1bf24254199db05856bbb4919378ac75cb Mon Sep 17 00:00:00 2001 From: Robin Gloster Date: Wed, 4 May 2016 10:08:35 +0000 Subject: use dontBuild instead of hacks changes: * buildPhase = "true" * buildPhase = ":" --- .../python-modules/stringtemplate/default.nix | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'pkgs/development/python-modules/stringtemplate') diff --git a/pkgs/development/python-modules/stringtemplate/default.nix b/pkgs/development/python-modules/stringtemplate/default.nix index f70888f102fc..5e372535b8ec 100644 --- a/pkgs/development/python-modules/stringtemplate/default.nix +++ b/pkgs/development/python-modules/stringtemplate/default.nix @@ -3,15 +3,22 @@ stdenv.mkDerivation rec { name = "PyStringTemplate-${version}"; version = "3.2b1"; - meta = { - homepage = "http://www.stringtemplate.org/"; - description = "Text Templating Library"; - }; + src = fetchurl { url = "http://www.stringtemplate.org/download/${name}.tar.gz"; sha256 = "0lbib0l8c1q7i1j610rwcdagymr1idahrql4dkgnm5rzyg2vk3ml"; }; + propagatedBuildInputs = [python antlr]; - buildPhase = "true"; - installPhase = "python setup.py install --prefix=$out --install-lib=$(toPythonPath $out) -O1"; + + dontBuild = true; + + installPhase = '' + python setup.py install --prefix=$out --install-lib=$(toPythonPath $out) -O1 + ''; + + meta = { + homepage = "http://www.stringtemplate.org/"; + description = "Text Templating Library"; + }; } -- cgit 1.4.1