You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For information, some nixpkgs manifests are missing information to properly check back
the "integrity" field. The derivation is containing the information but it's not
propagated to the manifest. See [1] [2] with a bit more description below:
In [1], the filesystem layout is required to build properly the same hash.
In [2], the executable bit permission is required on the file to compute the proper
hash.
I gather it's highly possible other edge cases exist too.
{
"outputHash": "0s2mvy1nr2v1x0rr1fxlsv8ly1vyf9978rb4hwry5vnr678ls522",
"outputHashAlgo": "sha256",
"outputHashMode": "recursive",
"type": "url",
"urls": [
"https://www.unicode.org/Public/emoji/12.1/emoji-zwj-sequences.txt"
],
"integrity": "sha256-QhRN0THZ7uIzh2RldFJyfgdP0da0u5Az6GGLbIPfVWg=",
"inferredFetcher": "unclassified"
}
# you need to reproduce the layout exactly like the derivation to be able to have the right same hash:
$ mkdir -p foobar/share/unicode/emoji
$ wget https://www.unicode.org/Public/emoji/12.1/emoji-zwj-sequences.txt -O foobar/share/unicode/emoji/emoji-zwj-sequences.txt -q
$ nix-store --dump foobar | sha256sum
42144dd131d9eee2338764657452727e074fd1d6b4bb9033e8618b6c83df5568 -
$ python3
>>> import base64
>>> base64.b64encode(bytes.fromhex("42144dd131d9eee2338764657452727e074fd1d6b4bb9033e8618b6c83df5568"))
b'QhRN0THZ7uIzh2RldFJyfgdP0da0u5Az6GGLbIPfVWg='
For information, some nixpkgs manifests are missing information to properly check back
the "integrity" field. The derivation is containing the information but it's not
propagated to the manifest. See [1] [2] with a bit more description below:
In [1], the filesystem layout is required to build properly the same hash.
In [2], the executable bit permission is required on the file to compute the proper
hash.
I gather it's highly possible other edge cases exist too.
Is it possible to do something about it?
Thanks for this and thanks your time.
[1] Derivation: https://github.com/NixOS/nixpkgs/blob/e4ef597edfd8a0ba5f12362932fc9b1dd01a0aef/pkgs/data/misc/unicode-emoji/default.nix
[2] Derivation: https://github.com/NixOS/nixpkgs/blob/350fd0044447ae8712392c6b212a18bdf2433e71/pkgs/development/tools/misc/remarkable/remarkable-toolchain/default.nix
The text was updated successfully, but these errors were encountered: