!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

965 Members
For people hacking on the Nix package manager itself204 Servers

Load older messages


SenderMessageTime
13 Aug 2021
@qyliss:fairydust.spaceAlyssa Ross fzakaria: do you know about nix-hash(1)? 06:49:11
@qyliss:fairydust.spaceAlyssa Ross has anybody encountered an issue where Nix creates empty .drv files for some expressions, and then fails with e.g. error: error parsing derivation '/nix/store/mgbw0dg9ihd3cg8wksdm0d2vi207pnfa-ruby2.7.4-docurium-0.6.0.drv': expected string 'Derive(['? 06:50:39
@Las:matrix.orgLas
In reply to @qyliss:fairydust.space
has anybody encountered an issue where Nix creates empty .drv files for some expressions, and then fails with e.g. error: error parsing derivation '/nix/store/mgbw0dg9ihd3cg8wksdm0d2vi207pnfa-ruby2.7.4-docurium-0.6.0.drv': expected string 'Derive(['?
Yes, your store is corrupted
07:49:28
@qyliss:fairydust.spaceAlyssa Rosscorrupted how?07:49:58
@Las:matrix.orgLasIt happens when my system crashes07:49:59
@Las:matrix.orgLasAnd I'm in the process of building07:50:04
@qyliss:fairydust.spaceAlyssa Ross of building, not instantiating? 07:50:36
@Las:matrix.orgLasWell yeah, technically when I'm instantiating07:50:50
@qyliss:fairydust.spaceAlyssa Rossit's strange because it's reproducible07:51:20
@qyliss:fairydust.spaceAlyssa RossI suppose I'll verify my store07:51:35
@Las:matrix.orgLasHow did you instantiate the derivation?07:51:49
@Las:matrix.orgLasI could try too07:51:50
@qyliss:fairydust.spaceAlyssa Rossmoment07:52:13
@qyliss:fairydust.spaceAlyssa Ross Las: nix-instantiate https://github.com/alyssais/nixpkgs/tarball/docurium -A docurium 07:57:39
@Las:matrix.orgLas
Derive([("out","/nix/store/phirgh7k7rvfgq264r3wm2mxlz8wdgch-docurium-0.6.0","","")],[("/nix/store/9j95kvgnigbnlii6zahwr0pc19fp6fl3-docurium-0.6.0.drv",["out"]),("/nix/store/gr85018kdi5vhyb6ds7sy6jlgkyp6qii-bash-4.4-p23.drv",["out"]),("/nix/store/s8nlhfq0ryp15mkrjmap3n4fkzziv5yq-stdenv-linux.drv",["out"])],["/nix/store/9krlzvny65gdc8s7kpb6lkx8cd02c25b-default-builder.sh"],"x86_64-linux","/nix/store/can473ld4dc8izcjlm4i5daxsh1yl5d8-bash-4.4-p23/bin/bash",["-e","/nix/store/9krlzvny65gdc8s7kpb6lkx8cd02c25b-default-builder.sh"],[("allowSubstitutes",""),("buildCommand","mkdir -p $out/bin\nln -s '/nix/store/k4q7hsk37x7sfimm7aqvj4s92pnqidkk-docurium-0.6.0/bin/cm' $out/bin/cm;\n\n\n\nfor section in {1..9}; do\n  mandir=\"$out/share/man/man$section\"\n  find -L /nix/store/k4q7hsk37x7sfimm7aqvj4s92pnqidkk-docurium-0.6.0/lib/ruby/gems/2.7.0/gems/docurium-0.6.0 \\( -wholename \"*/man/*.$section\" -o -wholename \"*/man/man$section/*.$section\" \\) -print -execdir mkdir -p $mandir \\; -execdir cp '{}' $mandir \\;\ndone\n\n"),("buildInputs",""),("builder","/nix/store/can473ld4dc8izcjlm4i5daxsh1yl5d8-bash-4.4-p23/bin/bash"),("configureFlags",""),("depsBuildBuild",""),("depsBuildBuildPropagated",""),("depsBuildTarget",""),("depsBuildTargetPropagated",""),("depsHostHost",""),("depsHostHostPropagated",""),("depsTargetTarget",""),("depsTargetTargetPropagated",""),("doCheck",""),("doInstallCheck",""),("exes","cm"),("name","docurium-0.6.0"),("nativeBuildInputs",""),("out","/nix/store/phirgh7k7rvfgq264r3wm2mxlz8wdgch-docurium-0.6.0"),("outputs","out"),("passAsFile","buildCommand"),("patches",""),("preferLocalBuild",""),("propagatedBuildInputs",""),("propagatedNativeBuildInputs",""),("stdenv","/nix/store/a9skvgykplgx882i0wgf3k4gqj7nm9i2-stdenv-linux"),("strictDeps",""),("system","x86_64-linux")])

Alyssa Ross

07:59:33
@qyliss:fairydust.spaceAlyssa RossOkay, so probably is an issue with store corruption07:59:59
@Las:matrix.orgLas Path itself is /nix/store/c6hi0jmy3kp6q58f208chgik77cd8k4p-docurium-0.6.0.drv 08:00:00
@Las:matrix.orgLasThe name is different on mine and yours08:00:24
@qyliss:fairydust.spaceAlyssa Rosshmm that's odd08:00:26
@qyliss:fairydust.spaceAlyssa Ross Las: aha! path '/nix/store/n94g41vg7qdwvz74dsig7lwvdsvjh8g0-ruby2.7.4-ffi-clang-0.6.0.drv' was modified! expected hash 'sha256:1bv0zp692sybrii3c19hydrm7m7yj925bpv449qpcbjg7nmn5dyz', got 'sha256:0ip26j2h11n1kgkz36rl4akv694yz65hr72q4kv4b3lxcbi65b3p' 08:47:12
@Las:matrix.orgLasI wonder if Nix could be made to check the hashes while reading them, i.e. when you make Nix read a derivation, it should check that what it reads matches the hash.08:52:57
@Las:matrix.orgLasIt seems like it would be a minor overhead, since you always read the entire derivation, and hashing is cheap.08:53:14
@Las:matrix.orgLasDoing the same for ordinary store paths would also be nice but would require a FUSE or similar I imagine.08:53:35
@qyliss:fairydust.spaceAlyssa Rossyeah, that's what I was thinking08:54:06
@tilpner:tx0.cotilpner joined the room.11:23:11
14 Aug 2021
@mic92:nixos.devMic92Is it now planned to switch to mesonbuild for nix? I am following https://github.com/NixOS/nix/pull/3160 but it is not clear to me?20:18:52
15 Aug 2021
@cw:kernelpanic.cafeRev. CornWallace III (novus ordo seclorum) changed their display name from cw (not sticky anymore) to cw (got the delta).00:57:52
@cw:kernelpanic.cafeRev. CornWallace III (novus ordo seclorum) changed their display name from cw (got the delta) to cw (just got delta).00:58:35
@Las:matrix.orgLas I don't think there are any plans to switch to it, even if support for it is added, since it needs to be easy to bootstrap. 07:47:50
@nixinator:nixos.devnixinator
In reply to @Las:matrix.org
I don't think there are any plans to switch to it, even if support for it is added, since it needs to be easy to bootstrap.
does meson require python to function?
07:50:59

Show newer messages


Back to Room ListRoom Version: 6