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

Add nix build for reference #8

Merged
merged 1 commit into from
Oct 14, 2023
Merged

Add nix build for reference #8

merged 1 commit into from
Oct 14, 2023

Conversation

kpcyrd
Copy link
Owner

@kpcyrd kpcyrd commented Oct 14, 2023

At the time of writing, Nix flakes are an experimental feature, they can be enabled with:

mkdir -p ~/.config/nix/
echo 'experimental-features = nix-command flakes' >> ~/.config/nix/nix.conf

This is supposed to demonstrate how repro-env.toml compares to flake.nix, and how repro-env.lock compares to flake.lock.

To cater to the same use-case (statically linked, reproducible binaries that can be attached to your github releases), this nix.flake file needs still to be modified (it currently dynamically links with shared objects in /nix/store/..., which won't work if you just download the binary from github on some generic Linux computer) This is now working.

The flake.nix file for this project (and the flake.lock fwiw) should be as clear and simple as possible, sticking to official, reputable resources only (like eg github.com/nixos/nixpkgs). If you have any suggestions on how it can be improved, please let me know!

@kpcyrd kpcyrd force-pushed the nix branch 4 times, most recently from 92dcbcd to 41fe356 Compare October 14, 2023 14:00
@kpcyrd kpcyrd merged commit 39b5fae into main Oct 14, 2023
@kpcyrd kpcyrd deleted the nix branch October 14, 2023 17:20
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.

1 participant