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/tools/networking | |
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/tools/networking')
-rw-r--r-- | pkgs/tools/networking/swec/default.nix | 43 |
1 files changed, 22 insertions, 21 deletions
diff --git a/pkgs/tools/networking/swec/default.nix b/pkgs/tools/networking/swec/default.nix index 3e8f3ca3dc5..f8a8b6393d2 100644 --- a/pkgs/tools/networking/swec/default.nix +++ b/pkgs/tools/networking/swec/default.nix @@ -5,33 +5,34 @@ stdenv.mkDerivation rec { name = "swec-0.4"; src = fetchurl { - url = "http://random.zerodogg.org/files/${name}.tar.bz2"; + url = "http://files.zerodogg.org/swec/${name}.tar.bz2"; sha256 = "1m3971z4z1wr0paggprfz0n8ng8vsnkc9m6s3bdplgyz7qjk6jwx"; }; buildInputs = [ makeWrapper perl LWP URI HTMLParser ] ++ stdenv.lib.optional doCheck [ HTTPServerSimple Parent ]; - configurePhase = - '' for i in swec tests/{runTests,testServer} - do - sed -i "$i" -e's|/usr/bin/perl|${perl}/bin/perl|g' - done - ''; - - buildPhase = "true"; - installPhase = - '' make install prefix="$out" - - mkdir -p "$out/share/${name}" - cp -v default.sdf "$out/share/${name}" - sed -i "$out/bin/swec" -e"s|realpath(\$0)|'$out/share/${name}/swec'|g" - - wrapProgram "$out/bin/swec" \ - --prefix PERL5LIB : \ - ${stdenv.lib.concatStringsSep ":" - (map (x: "${x}/lib/perl5/site_perl") [ LWP URI HTMLParser ])} - ''; + configurePhase = '' + for i in swec tests/{runTests,testServer} + do + sed -i "$i" -e's|/usr/bin/perl|${perl}/bin/perl|g' + done + ''; + + dontBuild = true; + + installPhase = '' + make install prefix="$out" + + mkdir -p "$out/share/${name}" + cp -v default.sdf "$out/share/${name}" + sed -i "$out/bin/swec" -e"s|realpath(\$0)|'$out/share/${name}/swec'|g" + + wrapProgram "$out/bin/swec" \ + --prefix PERL5LIB : \ + ${stdenv.lib.concatStringsSep ":" + (map (x: "${x}/lib/perl5/site_perl") [ LWP URI HTMLParser ])} + ''; doCheck = true; checkPhase = "make test"; |