From d20a8ddea8ba2e5062734716611de142402e1bd1 Mon Sep 17 00:00:00 2001 From: Allen Nelson Date: Mon, 13 Jun 2016 20:26:36 +0000 Subject: [PATCH] nix-serve: set PATH joachifm: also set `dontBuild = true`; `false` doesn't make any sense if the intent is to skip the build phase. Closes #16221 --- .../package-management/nix-serve/default.nix | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/pkgs/tools/package-management/nix-serve/default.nix b/pkgs/tools/package-management/nix-serve/default.nix index 3a20fdc0fac3..9ad3fb12436e 100644 --- a/pkgs/tools/package-management/nix-serve/default.nix +++ b/pkgs/tools/package-management/nix-serve/default.nix @@ -1,23 +1,28 @@ -{ lib, stdenv, fetchFromGitHub, perl, nix, perlPackages }: +{ stdenv, fetchFromGitHub, + bzip2, nix, perl, perlPackages, +}: -let rev = "7e09caa2a7a435aeb2cd5446aa590d6f9ae1699d"; in +with stdenv.lib; + +let + rev = "7e09caa2a7a435aeb2cd5446aa590d6f9ae1699d"; + sha256 = "0mjzsiknln3isdri9004wwjjjpak5fj8ncizyncf5jv7g4m4q1pj"; +in stdenv.mkDerivation rec { - name = "nix-serve-0.2-${lib.substring 0 7 rev}"; + name = "nix-serve-0.2-${substring 0 7 rev}"; src = fetchFromGitHub { owner = "edolstra"; repo = "nix-serve"; - inherit rev; - sha256 = "0mjzsiknln3isdri9004wwjjjpak5fj8ncizyncf5jv7g4m4q1pj"; + inherit rev sha256; }; - buildInputs = [ perl nix ] + buildInputs = [ bzip2 perl nix ] ++ (with perlPackages; [ DBI DBDSQLite Plack Starman ]); - dontBuild = false; + dontBuild = true; - # FIXME: unfortunate cut&paste. installPhase = '' mkdir -p $out/libexec/nix-serve cp nix-serve.psgi $out/libexec/nix-serve/nix-serve.psgi @@ -25,7 +30,7 @@ stdenv.mkDerivation rec { mkdir -p $out/bin cat > $out/bin/nix-serve <