Skip to content

Add nix build for reference#8

Merged
kpcyrd merged 1 commit intomainfrom
nix
Oct 14, 2023
Merged

Add nix build for reference#8
kpcyrd merged 1 commit intomainfrom
nix

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