flake.nix: add nix package #5

Merged
frero merged 4 commits from add-nix-package into hovudgren 2026-02-12 10:24:04 +01:00
Owner

This PR adds two nix package variants to the flake - one natively compiled and one cross compiled to freebsd.

It also adds an install target to the makefile, along with various conventional makefile arguments so that the nix stdenv (and potentially other packaging systems) will work well with the makefile.

innovation did not seem to play well with the fortify hardening flag, so that is disabled when cross compiling. I also used patchelf to undo some of the nix binary trickery, so that the binary won't look for its ELF loader and libc and whatnot in a nix store that doesn't exist on freebsd.

This PR adds two nix package variants to the flake - one natively compiled and one cross compiled to freebsd. It also adds an `install` target to the makefile, along with various conventional makefile arguments so that the nix stdenv (and potentially other packaging systems) will work well with the makefile. `innovation` did not seem to play well with the `fortify` hardening flag, so that is disabled when cross compiling. I also used `patchelf` to undo some of the nix binary trickery, so that the binary won't look for its ELF loader and libc and whatnot in a nix store that doesn't exist on freebsd.
oysteikt added 4 commits 2026-02-12 05:02:57 +01:00
oysteikt requested review from frero 2026-02-12 05:02:57 +01:00
frero force-pushed add-nix-package from e07ac838cc to 9629f86ba0 2026-02-12 10:23:31 +01:00 Compare
frero merged commit e34c59fed4 into hovudgren 2026-02-12 10:24:04 +01:00
frero deleted branch add-nix-package 2026-02-12 10:24:04 +01:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Projects/where-are-my-friends#5