From 9819bb20da130509ab62f303267331c2403b043c Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Sun, 11 May 2008 15:54:30 +0000 Subject: [PATCH] Added support for file:// archive (.nar.gz) repositories to nix-reduce-build. /tmp/nix-export created by nix-http-export.cgi is OK. --- scripts/nix-reduce-build.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/nix-reduce-build.in b/scripts/nix-reduce-build.in index f9cb5012b..2fd946c65 100644 --- a/scripts/nix-reduce-build.in +++ b/scripts/nix-reduce-build.in @@ -59,6 +59,7 @@ for i in "$@"; do sshHost="${i#ssh://}"; httpHost="${i#http://}"; httpsHost="${i#https://}"; + filePath="${i#file:/}"; if [ "$i" != "$sshHost" ]; then cat needed-paths | while read; do nix-copy-closure --from "$sshHost" --gzip "$REPLY" needed-paths;