What is the best practice for creating a nix derivation for a project that I am actually developing myself?
To clarify, I have built several derivations for other projects (sadly, all somewhat incomplete or not suitable for distribution), but the derivations for my own projects have proven tricky. Typically, I create a
shell.nix file for every project, and a
default.nix file for distributable executables. here is one example.
Do other developers do this, or do they just keep the Nix derivation files 100% within the
A drawback that I may have found with my method today is that, despite my efforts to make a repeatable experience, something in 19.03 changed and my derivation is no longer being consistent about the Rust environment it uses to build things. Some crates are getting built with 1.40, others are getting built with 1.39, and I can’t help but feel that this problem will not exist, or be easier to manage, if I was distributing along with
nixpkgs best practices.