Nix.pm: readNixFile: pass «--experimental-features nix-command»

Declarative jobsets were broken by the Nix update, causing
nix cat-file to break silently.

This commit restores declarative jobsets, based on top of a commit
making it easier to see what broke.
This commit is contained in:
Graham Christensen 2020-03-03 22:36:21 -05:00
parent 113a312f67
commit 117b9ecef1
No known key found for this signature in database
GPG key ID: FE918C3A98C1030F

View file

@ -509,7 +509,8 @@ sub getStoreUri {
# Read a file from the (possibly remote) nix store
sub readNixFile {
my ($path) = @_;
return grab(cmd => ["nix", "cat-store", "--store", getStoreUri(), "$path"]);
return grab(cmd => ["nix", "--experimental-features", "nix-command",
"cat-store", "--store", getStoreUri(), "$path"]);
}