Open leshy opened 5 years ago
I am getting this too. Is there a workaround? I cannot seem to find one.
I have tried setting nixpkgs to the 18.09 and even 18.03 versions, but there is no change. I will try using the nixops from those versions tonight.
This was an issue only on nixos-unstable for me. I reverted to 18.09 and made sure the deployed servers used 18.09 by adding
nix.nixPath = [ "nixpkgs=https://nixos.org/channels/nixos-18.09/nixexprs.tar.xz"];
to the server definition files.
not sure if one or the other helped :)
I added that line to the server definition file, but I still get the same error.
Ok, I still have no idea how to fix this.
I have tried writing a shell.nix that points to the 18.09 channel:
let
fetcher = { owner, repo, rev, sha256 }: builtins.fetchTarball {
inherit sha256;
url = "https://github.com/${owner}/${repo}/archive/${rev}.tar.gz";
};
nixpkgs = fetcher {
owner = "NixOS";
repo = "nixpkgs-channels";
rev = "d16a7abceb72aac85e0deb8c45fbcb7127baf628";
sha256 = "0byf6rlwwy70v2sdfmv7mnwd0kvxmlq0pi8ijghg0mcfhcqibgh7";
};
pkgs = import nixpkgs {};
in pkgs.runCommand "dummy" {
buildInputs = [ pkgs.nixops pkgs.sqlite pkgs.python27Packages.nixpart0 ];
} ""
But that doesn't work either.
Problem is, I do not understand what is going wrong properly. It appears to have something to do with nixpart.
This seems to be cause on the current nixpkgs/master
:
https://github.com/NixOS/nixpkgs/issues/70980#issuecomment-575884859
This should be fixed on the master now thanks to the @jtojnar quick reaction.
I'm not sure if we can close this for now?
I would think this was fixed until recently based on https://github.com/NixOS/nixpkgs/commit/c64e17b68dee9e04510ed5ddfdd6ac53664eb845. Then I broke it in https://github.com/NixOS/nixpkgs/commit/56e557257df675bc6b2cbebf3ba5bc6d51b2321c and it should be fixed again on https://github.com/NixOS/nixpkgs/commit/07b8ab4ff791dc8bcfeea643fd9a1fbedc534bbd. Could someone test if this works now?
@jtojnar I think that to test this on master we have to also bump nixops version (which has not been released yet) because of this: https://github.com/NixOS/nixops/commit/61abd34c4a67a230f0823af805a9e7439a9ba3be
Just deployed with NixOps 1.7pre2764_932bf43
Works fine
Hi, I'm failing to install on hetzner via nixops,
some info on my machine (it's a fresh nix install on arch)
tnx!