Skip to content
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

Cannot parse __contentAddressed derivations #28

Open
SuperSandro2000 opened this issue Oct 23, 2024 · 2 comments
Open

Cannot parse __contentAddressed derivations #28

SuperSandro2000 opened this issue Oct 23, 2024 · 2 comments

Comments

@SuperSandro2000
Copy link

When parsing content addressed derivations I receive the following none descriptive error:

 ➜ pretty-derivation < /nix/store/bch6405vvxyvmh9kwp32446fyqv3i474-hello-2.12.1.drv
pretty-derivation: user error (string)
Derive([("out","","r:sha256","")],[("/nix/store/6bbyjh7jjmjsn882wbbzqcc4lmh9js2g-version-check-hook.drv",["out"]),("/nix/store/9idvhy5nlgx9fjkxydgacmlk34yxh6sb-hello-2.12.1.tar.gz.drv",["out"]),("/nix/store/diappn3n1z5acaqnk6kw0mj53pzwbw47-stdenv-linux.drv",["out"]),("/nix/store/nkj6x4ajnxz1w80mhi7sspjpkvgp3bpk-bash-5.2p32.drv",["out"])],["/nix/store/v6x3cs394jgqfbi0a42pam708flxaphh-default-builder.sh"],"x86_64-linux","/nix/store/717iy55ncqs0wmhdkwc5fg2vci5wbmq8-bash-5.2p32/bin/bash",["-e","/nix/store/v6x3cs394jgqfbi0a42pam708flxaphh-default-builder.sh"],[("__structuredAttrs",""),("buildInputs",""),("builder","/nix/store/717iy55ncqs0wmhdkwc5fg2vci5wbmq8-bash-5.2p32/bin/bash"),("cmakeFlags",""),("configureFlags",""),("depsBuildBuild",""),("depsBuildBuildPropagated",""),("depsBuildTarget",""),("depsBuildTargetPropagated",""),("depsHostHost",""),("depsHostHostPropagated",""),("depsTargetTarget",""),("depsTargetTargetPropagated",""),("doCheck","1"),("doInstallCheck","1"),("mesonFlags",""),("name","hello-2.12.1"),("nativeBuildInputs","/nix/store/hl9vz7pgy2v5vylqh175yn2nxfs0bcgp-version-check-hook"),("out","/1rz4g4znpzjwh1xymhjpm42vipw92pr73vdgl6xs1hycac8kf2n9"),("outputHashAlgo","sha256"),("outputHashMode","recursive"),("outputs","out"),("patches",""),("pname","hello"),("postInstallCheck","stat \"${!outputBin}/bin/hello\"\n"),("propagatedBuildInputs",""),("propagatedNativeBuildInputs",""),("src","/nix/store/pa10z4ngm0g83kx9mssrqzz30s84vq7k-hello-2.12.1.tar.gz"),("stdenv","/nix/store/ncv68hjnidcd2bm5abkhklrijhn0cgn6-stdenv-linux"),("strictDeps",""),("system","x86_64-linux"),("version","2.12.1")])

without ca:

Derive([("out","/nix/store/26xbg1ndr7hbcncrlf9nhx5is2b25d13-hello-2.12.1","","")],[("/nix/store/6bbyjh7jjmjsn882wbbzqcc4lmh9js2g-version-check-hook.drv",["out"]),("/nix/store/9idvhy5nlgx9fjkxydgacmlk34yxh6sb-hello-2.12.1.tar.gz.drv",["out"]),("/nix/store/diappn3n1z5acaqnk6kw0mj53pzwbw47-stdenv-linux.drv",["out"]),("/nix/store/nkj6x4ajnxz1w80mhi7sspjpkvgp3bpk-bash-5.2p32.drv",["out"])],["/nix/store/v6x3cs394jgqfbi0a42pam708flxaphh-default-builder.sh"],"x86_64-linux","/nix/store/717iy55ncqs0wmhdkwc5fg2vci5wbmq8-bash-5.2p32/bin/bash",["-e","/nix/store/v6x3cs394jgqfbi0a42pam708flxaphh-default-builder.sh"],[("__structuredAttrs",""),("buildInputs",""),("builder","/nix/store/717iy55ncqs0wmhdkwc5fg2vci5wbmq8-bash-5.2p32/bin/bash"),("cmakeFlags",""),("configureFlags",""),("depsBuildBuild",""),("depsBuildBuildPropagated",""),("depsBuildTarget",""),("depsBuildTargetPropagated",""),("depsHostHost",""),("depsHostHostPropagated",""),("depsTargetTarget",""),("depsTargetTargetPropagated",""),("doCheck","1"),("doInstallCheck","1"),("mesonFlags",""),("name","hello-2.12.1"),("nativeBuildInputs","/nix/store/hl9vz7pgy2v5vylqh175yn2nxfs0bcgp-version-check-hook"),("out","/nix/store/26xbg1ndr7hbcncrlf9nhx5is2b25d13-hello-2.12.1"),("outputs","out"),("patches",""),("pname","hello"),("postInstallCheck","stat \"${!outputBin}/bin/hello\"\n"),("propagatedBuildInputs",""),("propagatedNativeBuildInputs",""),("src","/nix/store/pa10z4ngm0g83kx9mssrqzz30s84vq7k-hello-2.12.1.tar.gz"),("stdenv","/nix/store/ncv68hjnidcd2bm5abkhklrijhn0cgn6-stdenv-linux"),("strictDeps",""),("system","x86_64-linux"),("version","2.12.1")])

diff <(nix derivation show /nix/store/161hd6k485dvr9cx02ccnc1x4n9fzix6-hello-2.12.1.drv) <(nix derivation show /nix/store/bch6405vvxyvmh9kwp32446fyqv3i474-hello-2.12.1.drv) | c

--- /dev/fd/63  2024-10-23 15:17:55.279486571 +0200
+++ /dev/fd/62  2024-10-23 15:17:55.279486571 +0200
@@ -1,5 +1,5 @@
 {
-  "/nix/store/161hd6k485dvr9cx02ccnc1x4n9fzix6-hello-2.12.1.drv": {
+  "/nix/store/bch6405vvxyvmh9kwp32446fyqv3i474-hello-2.12.1.drv": {
     "args": [
       "-e",
       "/nix/store/v6x3cs394jgqfbi0a42pam708flxaphh-default-builder.sh"
@@ -24,7 +24,9 @@
       "mesonFlags": "",
       "name": "hello-2.12.1",
       "nativeBuildInputs": "/nix/store/hl9vz7pgy2v5vylqh175yn2nxfs0bcgp-version-check-hook",
-      "out": "/nix/store/26xbg1ndr7hbcncrlf9nhx5is2b25d13-hello-2.12.1",
+      "out": "/1rz4g4znpzjwh1xymhjpm42vipw92pr73vdgl6xs1hycac8kf2n9",
+      "outputHashAlgo": "sha256",
+      "outputHashMode": "recursive",
       "outputs": "out",
       "patches": "",
       "pname": "hello",
@@ -69,7 +71,8 @@
     "name": "hello-2.12.1",
     "outputs": {
       "out": {
-        "path": "/nix/store/26xbg1ndr7hbcncrlf9nhx5is2b25d13-hello-2.12.1"
+        "hashAlgo": "sha256",
+        "method": "nar"
       }
     },
     "system": "x86_64-linux"
@Ericson2314
Copy link

@SuperSandro2000 See the open PRs, Also see the other issue from me; I am going to merge everything and put in hnix-store.

@Ericson2314
Copy link

See haskell-nix/hnix-store#289

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants