Package pitty for Nix source builds#17
Conversation
Add a buildRustPackage expression and flake package/app outputs so pitty can be installed from source with Nix now and carried into nixpkgs later. Track Cargo.lock because pitty is an application and reproducible source builds need a fixed dependency graph.
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
Why
pitty should be installable from source with Nix now, while keeping the package expression close to what nixpkgs expects for a future official package submission.
What
rustPlatform.buildRustPackageexpression innix/package.nixpackages.default,packages.pitty,apps.pitty, andchecks.pittyfrom the flakeCargo.lockso application source builds are reproducibleVerification
nix build .#pitty./result/bin/pitty --versionnix run .#pitty -- --versionnix flake checkgit diff --cached --check