julien on Nostr: try `nix derivation show ...
try `nix derivation show /nix/store/cigxbmvy6dzix98dxxh9b6shg7ar5bvs-perl-BerkeleyDB-0.26.drv`
it will have an outputPath field with the binary hash. A derivation is just a json-like blob.
Published at
2024-08-28 10:29:39Event JSON
{
"id": "fd4127b8ba866270635c7177786b409aeb7f0e4f73c9c4dc42d11a37fff82e91",
"pubkey": "2bb507e8086248747d2ec5009a70ccdbe0be9310fa612952923c8579e5aa8044",
"created_at": 1724840979,
"kind": 1,
"tags": [
[
"e",
"6c7e707f218aaeeca84e64414eaafecb92d3e1ff19c394021bef121b83a6a793",
"",
"root"
],
[
"e",
"a3253e46d21bd894d051c5e1e1480b8ec0928428fb94940cd6de4d12fc612553"
],
[
"e",
"dc621ecfd1ad2842d31777b75cadc0c0355e6e4ea5b922427f78be6ea03551be",
"",
"reply"
],
[
"p",
"2bb507e8086248747d2ec5009a70ccdbe0be9310fa612952923c8579e5aa8044"
],
[
"p",
"a008def15796fba9a0d6fab04e8fd57089285d9fd505da5a83fe8aad57a3564d"
],
[
"r",
"cigxbmvy6dzix98dxxh9b6shg7ar5bvs-perl-BerkeleyDB-0.26.drv"
]
],
"content": "try `nix derivation show /nix/store/cigxbmvy6dzix98dxxh9b6shg7ar5bvs-perl-BerkeleyDB-0.26.drv` \nit will have an outputPath field with the binary hash. A derivation is just a json-like blob. ",
"sig": "c78e553810939ec48e91d0a1048233c0a04c863365ca894d4c7d93d85f1066b5eb0d74b0a05b34c6ff36ac1f3342b1e863cc13415e245ad652b50068dc1cb827"
}