diff options
author | Robin Gloster <mail@glob.in> | 2016-05-04 10:08:35 +0000 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2016-05-04 10:11:04 +0000 |
commit | 9820cb1bf24254199db05856bbb4919378ac75cb (patch) | |
tree | 6c6bfeb09e5799573e7546419e3496a6fcf0863a /pkgs/development/python-modules/stringtemplate | |
parent | aadaa913792b0fdeb68b02425e4f03d2f8286a1f (diff) | |
download | nixpkgs-9820cb1bf24254199db05856bbb4919378ac75cb.tar nixpkgs-9820cb1bf24254199db05856bbb4919378ac75cb.tar.gz nixpkgs-9820cb1bf24254199db05856bbb4919378ac75cb.tar.bz2 nixpkgs-9820cb1bf24254199db05856bbb4919378ac75cb.tar.lz nixpkgs-9820cb1bf24254199db05856bbb4919378ac75cb.tar.xz nixpkgs-9820cb1bf24254199db05856bbb4919378ac75cb.tar.zst nixpkgs-9820cb1bf24254199db05856bbb4919378ac75cb.zip |
use dontBuild instead of hacks
changes: * buildPhase = "true" * buildPhase = ":"
Diffstat (limited to 'pkgs/development/python-modules/stringtemplate')
-rw-r--r-- | pkgs/development/python-modules/stringtemplate/default.nix | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/stringtemplate/default.nix b/pkgs/development/python-modules/stringtemplate/default.nix index f70888f102f..5e372535b8e 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"; + }; } |