Personal Nix package collection.
These use buildRustPackage and need a cargoHash.
- Update
revandshortRev(if used) to latest commit. - Update
hash(source hash):- Run:
nix shell nixpkgs#nix-prefetch-github -c nix-prefetch-github <owner> <repo> --rev <rev>
- Run:
- Update
cargoHash:- Set
cargoHash = lib.fakeHash;(or many zeros). - Run:
nix-build -E 'with import <nixpkgs> {}; callPackage ./pkgs/<name>/default.nix {}' - Copy "got" hash from error message into
default.nix.
- Set
- Verify build:
nix-build -E 'with import <nixpkgs> {}; callPackage ./pkgs/<name>/default.nix {}'
Usually just need rev and hash updates.
- Update
rev. - Update source
hashusingnix-prefetch-urlornix-prefetch-github. - Verify build same as above.
Always run nix-build before committing.