From 4adb63d5a0fca56fe954ca9b1871ec38caafd008 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 24 Nov 2020 13:49:30 +0100 Subject: [PATCH] Use 'nix dump-path' This makes nix-serve work properly with redirected stores, e.g. 'NIX_REMOTE=/my/nix nix-serve'. --- nix-serve.psgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix-serve.psgi b/nix-serve.psgi index 437b232..8beb6a3 100644 --- a/nix-serve.psgi +++ b/nix-serve.psgi @@ -53,7 +53,7 @@ my $app = sub { my $storePath = queryPathFromHashPart($hashPart); return [404, ['Content-Type' => 'text/plain'], ["No such path.\n"]] unless $storePath; my $fh = new IO::Handle; - open $fh, "-|", "nix-store", "--dump", "--", $storePath; + open $fh, "-|", "nix", "dump-path", "--", $storePath; return [200, ['Content-Type' => 'text/plain'], $fh]; }