Closed yangm97 closed 10 months ago
Oh yeah, it's a little incomplete as it is. But the goal is to output packetcrypt as a nix package.
All I did was nix flake init -t 'templates#rust'
and change some settings to make compilation work:
https://github.com/yangm97/packetcrypt_rs/blob/master/flake.nix#L16-L20
At the moment I have only tested nixOS with flakes, but the template ships with a compatibility shim for nix-channel and I guess it should be able to compile on other platforms aswell (such as nix on macOS).
I'm trying to figure out why the CI is failing and if it is possible to get rid of singleStep = true
in order to get incremental builds going. Another thing I would like to do is expose the custom compile flags through nix before marking this as ready.
You'll have to explain to me how this works, but ACK for the concept.