forked from lix-project/hydra
replace nix cat-store with nix store cat
the former was deprecated in favor of the latter
This commit is contained in:
parent
44841fc827
commit
bab671124d
|
@ -234,7 +234,7 @@ sub serveFile {
|
||||||
elsif ($ls->{type} eq "regular") {
|
elsif ($ls->{type} eq "regular") {
|
||||||
|
|
||||||
$c->stash->{'plain'} = { data => grab(cmd => ["nix", "--experimental-features", "nix-command",
|
$c->stash->{'plain'} = { data => grab(cmd => ["nix", "--experimental-features", "nix-command",
|
||||||
"cat-store", "--store", getStoreUri(), "$path"]) };
|
"store", "cat", "--store", getStoreUri(), "$path"]) };
|
||||||
|
|
||||||
# Detect MIME type. Borrowed from Catalyst::Plugin::Static::Simple.
|
# Detect MIME type. Borrowed from Catalyst::Plugin::Static::Simple.
|
||||||
my $type = "text/plain";
|
my $type = "text/plain";
|
||||||
|
@ -366,7 +366,7 @@ sub contents : Chained('buildChain') PathPart Args(1) {
|
||||||
|
|
||||||
# FIXME: don't use shell invocations below.
|
# FIXME: don't use shell invocations below.
|
||||||
|
|
||||||
# FIXME: use nix cat-store
|
# FIXME: use nix store cat
|
||||||
|
|
||||||
my $res;
|
my $res;
|
||||||
|
|
||||||
|
|
|
@ -537,7 +537,7 @@ sub getStoreUri {
|
||||||
sub readNixFile {
|
sub readNixFile {
|
||||||
my ($path) = @_;
|
my ($path) = @_;
|
||||||
return grab(cmd => ["nix", "--experimental-features", "nix-command",
|
return grab(cmd => ["nix", "--experimental-features", "nix-command",
|
||||||
"cat-store", "--store", getStoreUri(), "$path"]);
|
"store", "cat", "--store", getStoreUri(), "$path"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue