anyrun-org / anyrun

A wayland native, highly customizable runner.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Cachix] No substituter when installing `anyrun` on nixos

FirelightFlagboy opened this issue · comments

I've configured my nixos to use https://anyrun.cachix.org following the snippet below home manager module.

When I run nixos-rebuild ... -vvvv, in the log, I see I'm using anyrun.cachix.org but it result in a cache miss and require me to build anyrun.

checking substituter 'https://anyrun.cachix.org' for path '/nix/store/42ndmvk7w81zfsfc9ccmn0k5c9qplfd3-anyrun-0.1.0'
[...]
path '/nix/store/42ndmvk7w81zfsfc9ccmn0k5c9qplfd3-anyrun-0.1.0' is required, but there is no substituter that can build it

I've done an additional check using curl and the entry appear to be missing from the cache:

$ curl https://anyrun.cachix.org/42ndmvk7w81zfsfc9ccmn0k5c9qplfd3.narinfo
404 - Not Found

Same here

Hmm maybe we can package anyrun in nixpkgs?

commented

I have been experiencing the same for a while now, most likely my fault why it's like this. I'll take a look at fixing this.

Hello @NotAShelf, I didn't take a look at this issue since it has been fixed.

If I understand correctly, the fix provide a cached build for those who have configured substituters to use anyrun.cachix.org but does that also require to follow the same nixpkgs-unstable revision ?

Regards

commented

hey @FirelightFlagboy

using the binary cache does not require you to follow the same nixpkgs-unstable revision, as the binary will be pulled from the cache directly and not build

as a rule of thumb, you should not follow any inputs in packages that you intend to pull from a cache, as that will cause a hash mismatch between your system and the cache - which means you will not be able to pull and have to build locally

I'm still having issue with the cache.

Nix (trough home-manager) is using the substitute anyrun.cachix.org because when I do

home-manager switch --flake '.#redacted' --verbose --dry-run

I see

copying path '/nix/store/a5spqvgdp4qxhz4arxxn2374jv0r7acv-source' from 'https://anyrun.cachix.org'...

But just after that:

these 6 derivations will be built:
  /nix/store/v0x660vfdx54vs1kh3rg5r2393xb999v-anyrun-0.1.0.drv
  [...]

So anyrun still need to be build :(


I've taken a look at v0x660vfdx54vs1kh3rg5r2393xb999v-anyrun-0.1.0.drv:

v0x660vfdx54vs1kh3rg5r2393xb999v-anyrun-0.1.0.drv
Derive([("out","/nix/store/94fg0pxf3j6v2fqyzvy575fls22ibmnl-anyrun-0.1.0","","")],[("/nix/store/06dzd47f4ffc7hhw3l0cz4lqw5gp3zvg-rustfmt-1.69.0.drv",["out"]),("/nix/store/0k3ymnbpcpgwihb37q6wl9a6jnqzv31g-at-spi2-core-2.48.0.drv",["dev"]),("/nix/store/0lgbngqkyx41rw6nkf1pc3i81aj8hzfw-glib-2.76.2.drv",["dev"]),("/nix/store/0rpb6s646jzl6vmjy7gv93qnbq5lxamj-cargo-setup-hook.sh.drv",["out"]),("/nix/store/33g0fhb1cmlr7arbxrckl9pylf5igpkl-cargo-1.69.0.drv",["out"]),("/nix/store/3i5sidalszqmlnc6mrrfbyv78l8gf2vk-gtk+3-3.24.37.drv",["dev"]),("/nix/store/3vw0pwknl0493m0nfjbddqffwn65xx0k-pkg-config-wrapper-0.29.2.drv",["out"]),("/nix/store/79lqjvmza867mns84n9jaagdz2i0znyj-rustc-1.69.0.drv",["out"]),("/nix/store/a2iq3wqlqicjvz50a7kbvxr2a53s3qpc-cargo-install-hook.sh.drv",["out"]),("/nix/store/c72dkpn6psfslfmgdmfx2b39wwf3gjy4-stdenv-linux.drv",["out"]),("/nix/store/dnj19vmvihp6pi7x7chyq2x9hibr6slk-gtk-layer-shell-0.8.0.drv",["dev"]),("/nix/store/lqdw5xf0n9glq8s831qsvzd0hpjasjny-auditable-cargo-1.69.0.drv",["out"]),("/nix/store/mcjbr0j20q0sj5a31d3acmxgjabb5xs6-bash-5.2-p15.drv",["out"]),("/nix/store/p3qda40r7z8gnz8i9rf5x5q1x7zllvs3-cargo-build-hook.sh.drv",["out"]),("/nix/store/plcf5xwijx0vxvn3zg4zjidi2qsa5w9j-cargo-check-hook.sh.drv",["out"]),("/nix/store/q64l6vs1wrchvchmkwgwfnb0p993a58a-cargo-vendor-dir.drv",["out"]),("/nix/store/ywv117jji6al9r5kp22lpjwks7z0ib2g-make-shell-wrapper-hook.drv",["out"]),("/nix/store/zgpp4qlfbrxpnwrp4x0xiwj0dbjsyyz2-librsvg-2.55.3.drv",["dev","out"])],["/nix/store/597kd66jhvycs3lg10vzflhljy2phdfx-i6njmiv9drgmn1jgghnwgpc1s9dvimx7-source","/nix/store/6xg259477c90a229xwmb53pdfkn6ig3g-default-builder.sh","/nix/store/nk6b2ckznjic5wj8ddw0wgdrn4mbz3lg-patch-registry-deps"],"x86_64-linux","/nix/store/8fv91097mbh5049i9rglc73dx6kjg3qk-bash-5.2-p15/bin/bash",["-e","/nix/store/6xg259477c90a229xwmb53pdfkn6ig3g-default-builder.sh"],[("CARGO_BUILD_INCREMENTAL","false"),("PKG_CONFIG_ALLOW_CROSS","0"),("RUST_BACKTRACE","full"),("__structuredAttrs",""),("buildAndTestSubdir","anyrun"),("buildInputs","/nix/store/93fy4p3vrjpxkzrliql5lh51flcanx04-pkg-config-wrapper-0.29.2 /nix/store/dypzmzgjvyfs32gg8sj0rb6q79nf4390-glib-2.76.2-dev /nix/store/zz9jwiq3vqwxsnsy4rz3y1l8lfwykfvm-at-spi2-core-2.48.0-dev /nix/store/36jvsx3czghdpvghqimwrn9rqfyxldn5-gtk+3-3.24.37-dev /nix/store/6gn3pp38c93c0n37ykshjixgcgvacg83-librsvg-2.55.3-dev /nix/store/7facmacjrpd4mv7n9bdfpqckvbgr617m-gtk-layer-shell-0.8.0-dev /nix/store/pzkaqsbr1bsjhki0j3x95szpmrmxd106-cargo-1.69.0 /nix/store/31yfbjr076b0law2s1i5i8na4ak52jv4-rustc-1.69.0"),("builder","/nix/store/8fv91097mbh5049i9rglc73dx6kjg3qk-bash-5.2-p15/bin/bash"),("cargoBuildFeatures",""),("cargoBuildFlags","-p anyrun"),("cargoBuildNoDefaultFeatures",""),("cargoBuildType","release"),("cargoCheckFeatures",""),("cargoCheckNoDefaultFeatures",""),("cargoCheckType","release"),("cargoDeps","/nix/store/1ggml56v8drim8b386c5550xs0vbdwpj-cargo-vendor-dir"),("cmakeFlags",""),("configureFlags",""),("configurePhase","runHook preConfigure\nrunHook postConfigure\n"),("copyLibs","1"),("depsBuildBuild",""),("depsBuildBuildPropagated",""),("depsBuildTarget",""),("depsBuildTargetPropagated",""),("depsHostHost",""),("depsHostHostPropagated",""),("depsTargetTarget",""),("depsTargetTargetPropagated",""),("doCheck","1"),("doInstallCheck",""),("mesonFlags",""),("name","anyrun-0.1.0"),("nativeBuildInputs","/nix/store/93fy4p3vrjpxkzrliql5lh51flcanx04-pkg-config-wrapper-0.29.2 /nix/store/q8dl3r2mxwhg5x910ixvvs61w6v95q5p-make-shell-wrapper-hook /nix/store/dj4aa1j35ick9j8s71lmpyqygcsihb2y-rustfmt-1.69.0 /nix/store/31yfbjr076b0law2s1i5i8na4ak52jv4-rustc-1.69.0 /nix/store/pzkaqsbr1bsjhki0j3x95szpmrmxd106-cargo-1.69.0 /nix/store/h9di74svvms5bhbpq5r31qfp7rki3ly7-auditable-cargo-1.69.0 /nix/store/g5smbx16rlm7g2f3aah5ggh4pzbl1q6q-cargo-build-hook.sh /nix/store/vj37lsmriv15lpxj7bgv2pw12hpi2nvn-cargo-check-hook.sh /nix/store/k1q54li4bv6xiw9pd05kvw2rj9kx449b-cargo-install-hook.sh /nix/store/7yckvqrx36g8kldb7gni1xdqrqszvpld-cargo-setup-hook.sh /nix/store/31yfbjr076b0law2s1i5i8na4ak52jv4-rustc-1.69.0"),("out","/nix/store/94fg0pxf3j6v2fqyzvy575fls22ibmnl-anyrun-0.1.0"),("outputs","out"),("patchRegistryDeps","/nix/store/nk6b2ckznjic5wj8ddw0wgdrn4mbz3lg-patch-registry-deps"),("patches",""),("pname","anyrun"),("postInstall","wrapProgram $out/bin/anyrun \\\n  --set GDK_PIXBUF_MODULE_FILE \"$(echo /nix/store/lv65dravh1g0mhq2v5b72fhsmw2g4bx4-librsvg-2.55.3/lib/gdk-pixbuf-2.0/*/loaders.cache)\" \\\n  --prefix ANYRUN_PLUGINS : $out/lib\n"),("postUnpack","eval \"$cargoDepsHook\"\n\nexport RUST_LOG=\n"),("propagatedBuildInputs",""),("propagatedNativeBuildInputs",""),("src","/nix/store/597kd66jhvycs3lg10vzflhljy2phdfx-i6njmiv9drgmn1jgghnwgpc1s9dvimx7-source"),("stdenv","/nix/store/vfdg65hiv4bwls48588msw8la7452w2q-stdenv-linux"),("strictDeps","1"),("system","x86_64-linux"),("version","0.1.0")])

And It seems the output 94fg0pxf3j6v2fqyzvy575fls22ibmnl-anyrun-0.1.0 isn't present in the cache

$ curl https://anyrun.cachix.org/94fg0pxf3j6v2fqyzvy575fls22ibmnl.narinfo
404 - Not Found