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

Make the .deb file fully-reproducible #51

Merged

Conversation

the-sun-will-rise-tomorrow
Copy link
Contributor

@the-sun-will-rise-tomorrow the-sun-will-rise-tomorrow commented Jul 3, 2024

With this, sha256sum "$(nix-build -A deb)" should now produce f1a55f1f26c1d9127762e1659c5562bfe3b5bc8745ae2e31c4524f134f70100b /nix/store/lxl9pazqvbiv70i74rw7gba6437i4mjh-nix-multi-user-2.17.1.deb for everyone.

@the-sun-will-rise-tomorrow the-sun-will-rise-tomorrow marked this pull request as draft July 3, 2024 17:24
@the-sun-will-rise-tomorrow the-sun-will-rise-tomorrow marked this pull request as ready for review July 3, 2024 17:35
@the-sun-will-rise-tomorrow
Copy link
Contributor Author

@adisbladis Hi, have you had a chance to look at this?

@the-sun-will-rise-tomorrow
Copy link
Contributor Author

@Mic92 Hi, since this project's maintainer is away, do you know who could look at this?

@Mic92
Copy link
Member

Mic92 commented Aug 4, 2024

What happens if you do not dereference hard links?

@the-sun-will-rise-tomorrow
Copy link
Contributor Author

They will be saved to the tar balls as hard links. This causes the output to be different depending on whether auto-optimise-store is enabled or not.

See also: https://github.com/search?q=repo%3ANixOS%2Fnixpkgs%20hard-dereference&type=code

@the-sun-will-rise-tomorrow
Copy link
Contributor Author

@adisbladis @Mic92 Kind ping.

@Mic92 Mic92 merged commit 3a6f59e into nix-community:master Aug 26, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants