nix-community / NUR

Nix User Repository: User contributed nix packages [maintainer=@Mic92]
https://nur.nix-community.org/
MIT License
1.31k stars 339 forks source link

[nur-ci] raises error in prescence of pkgs.replaceDependency #169

Open augu5te opened 4 years ago

augu5te commented 4 years ago

Packages based on pkgs.replaceDependency in a nur-repo/default.nix raise a NUR-CI error but work locally when incriminated nur-repo is use thanks overriding with repoOverrides .

The following in nur-repo/default.nix

bs-slurm = pkgs.replaceDependency {
     drv = slurm-multiple-slurmd;
     oldDependency = pkgs.glibc;
     newDependency = glibc-batsky;
   };

Gives the NUR-CI error:

INFO:nur.update:Evaluate repository kapack
error: while evaluating anonymous function at /nix/store/qvzj27il1373gki369jm3zg2vzr9xg69-nixpkgs-20.03pre204216.cc6cf0a96a6/nixpkgs/pkgs/build-support/replace-dependency.nix:20:1, called from /nix/store/2x2q6y0rps9sml7ff0z3g80k2za55f6h-source/default.nix:65:14:
cannot import '/nix/store/rp3n56hnxp85widn75hlj08f9gbk4yp2-references.nix', since path '/nix/store/6nkfqg35rr5if36lm9lzz8bdvb9fsc98-references.nix.drv' is not valid, at /nix/store/qvzj27il1373gki369jm3zg2v
Mic92 commented 4 years ago

So it seems that it does some import-derivation which seems to be blocked by our checks.