-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error : .../lib/attresets.nix
is not in ...-source
#249
Comments
Looks like one flake tries to access another flake with an absolute import path?
Can you check out what I think it has something to do with:
|
I am also having this issue, this doesn't seem to have anything to do with extra flake inputs. I created a flake where the only flake input is
melody in gameglass-flake.nix on main
at 13:20:17 ❯ ls /nix/store/4kmip8a3k9n5z59wcah3jzrar7lwm3i9-source
flake.lock flake.nix gameglass.nix |
This issue looked to be because of the package using ❯ nix eval .\#gameglass.meta.position
"/nix/store/7v6l2v247fmdgfpbs3w91mf6rinai4yk-source/lib/attrsets.nix:984" So I tried a different package.. {
lib,
stdenv,
fetchFromGitHub,
nix-update-script,
...
}:
stdenv.mkDerivation (finalAttrs: {
pname = "catppuccin-base16";
version = "git+${builtins.substring 0 8 finalAttrs.src.rev}";
src = fetchFromGitHub {
owner = "catppuccin";
repo = "base16";
rev = "99aa911b29c9c7972f7e1d868b6242507efd508c";
hash = "sha256-HHodDRrlcBVWGE3MN0i6UvUn30zY/JFEbgeUpnZG5C0=";
};
passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };
meta = {
description = "Base16 Catppuccin theme";
homepage = "https://github.com/catppuccin/base16";
platforms = lib.platforms.all;
license = lib.licenses.mit;
};
installPhase = ''
mkdir -p $out/share
cp -r $src/base16 $out/share/themes
'';
}) This gives me a similar but different error: error: /nix/store/mr50vwmkskid925jf21fg3w4n43jq558-l393p8dfvmbmydcjmc8iqqsd101b3fns-source/packages/catppuccin-base16/default.nix is not in /nix/store/l393p8dfvmbmydcjmc8iqqsd101b3fns-source But the path does exist: ❯ , file /nix/store/l393p8dfvmbmydcjmc8iqqsd101b3fns-source/packages/catppuccin-base16/default.nix
/nix/store/l393p8dfvmbmydcjmc8iqqsd101b3fns-source/packages/catppuccin-base16/default.nix: ASCII text |
Having the same issue with As a workaround, you can explicitly pass the filename where the version number is defined via
|
When trying to update a package in a flake I encountered the following error:
I'm not sure exactly what is the problem...
The derivation file is the following:
The text was updated successfully, but these errors were encountered: