treewide: switch back to pkgs.nix
This commit is contained in:
@@ -18,16 +18,6 @@ let
|
|||||||
pkgs.bubblewrap
|
pkgs.bubblewrap
|
||||||
] ++ builtins.map (i: i.outPath) (builtins.attrValues self.inputs);
|
] ++ builtins.map (i: i.outPath) (builtins.attrValues self.inputs);
|
||||||
closureInfo = pkgs.closureInfo { rootPaths = dependencies; };
|
closureInfo = pkgs.closureInfo { rootPaths = dependencies; };
|
||||||
# with Nix 2.24 we get:
|
|
||||||
# vm-test-run-test-installation> installer # error: sized: unexpected end-of-file
|
|
||||||
# vm-test-run-test-installation> installer # error: unexpected end-of-file
|
|
||||||
# This seems to be fixed with Nix 2.26
|
|
||||||
# Remove this line once `pkgs.nix` is 2.26+
|
|
||||||
nixPackage =
|
|
||||||
assert
|
|
||||||
lib.versionOlder pkgs.nix.version "2.26"
|
|
||||||
&& lib.versionAtLeast pkgs.nixVersions.latest.version "2.26";
|
|
||||||
pkgs.nixVersions.latest;
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
@@ -49,7 +39,6 @@ let
|
|||||||
# both installer and target need to use the same diskImage
|
# both installer and target need to use the same diskImage
|
||||||
virtualisation.diskImage = "./target.qcow2";
|
virtualisation.diskImage = "./target.qcow2";
|
||||||
virtualisation.memorySize = 3048;
|
virtualisation.memorySize = 3048;
|
||||||
nix.package = nixPackage;
|
|
||||||
nix.settings = {
|
nix.settings = {
|
||||||
substituters = lib.mkForce [ ];
|
substituters = lib.mkForce [ ];
|
||||||
hashed-mirrors = null;
|
hashed-mirrors = null;
|
||||||
|
|||||||
@@ -166,14 +166,7 @@ pythonRuntime.pkgs.buildPythonApplication {
|
|||||||
buildInputs = [
|
buildInputs = [
|
||||||
pkgs.bash
|
pkgs.bash
|
||||||
pkgs.coreutils
|
pkgs.coreutils
|
||||||
# looks like Nix 2.26 fixes the profile creation race condition we were running into on Nix 2.24
|
pkgs.nix
|
||||||
# Switch this back to `pkgs.nix` when `pkgs.nix` is Nix 2.26+
|
|
||||||
(
|
|
||||||
assert
|
|
||||||
lib.versionOlder pkgs.nix.version "2.26"
|
|
||||||
&& lib.versionAtLeast pkgs.nixVersions.latest.version "2.26";
|
|
||||||
pkgs.nixVersions.latest
|
|
||||||
)
|
|
||||||
];
|
];
|
||||||
closureInfo = pkgs.closureInfo {
|
closureInfo = pkgs.closureInfo {
|
||||||
rootPaths = [
|
rootPaths = [
|
||||||
|
|||||||
Reference in New Issue
Block a user