ofborg: nix: pass rev to nixpkgs
Hydra seems to have passed in rev all the time, and nixpkgs will soon
require `rev` to be set.
This initially broke nixpkgs eval in
5e8545e723
,
so we now update ofborg to always pass `rev` when instantiating nixpkgs
to avoid breaking it.
This commit is contained in:
parent
ea4b7f8aab
commit
29ac8fbba9
|
@ -219,7 +219,7 @@ impl Nix {
|
||||||
args.push(String::from("--arg"));
|
args.push(String::from("--arg"));
|
||||||
args.push(String::from("nixpkgs"));
|
args.push(String::from("nixpkgs"));
|
||||||
args.push(String::from(
|
args.push(String::from(
|
||||||
"{ outPath=./.; revCount=999999; shortRev=\"ofborg\"; }",
|
"{ outPath=./.; revCount=999999; shortRev=\"ofborg\"; rev=\"0000000000000000000000000000000000000000\"; }",
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
command.args(args);
|
command.args(args);
|
||||||
|
@ -659,7 +659,7 @@ mod tests {
|
||||||
Expect::Pass,
|
Expect::Pass,
|
||||||
vec![
|
vec![
|
||||||
"./nixos/release.nix",
|
"./nixos/release.nix",
|
||||||
"--arg nixpkgs { outPath=./.; revCount=999999; shortRev=\"ofborg\"; }",
|
"--arg nixpkgs { outPath=./.; revCount=999999; shortRev=\"ofborg\"; rev=\"0000000000000000000000000000000000000000\"; }",
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue