This directory contains Nix packaging manifests for KKFetch following standard Nixpkgs conventions.
package.nix: Standard Nixpkgs derivation usingrustPlatform.buildRustPackagewithinstallShellFilesfor completions.default.nix: Entrypoint for localnix-buildtargeting the workspace source.flake.nix: Modern Nix Flake definition providing packages, apps, devShells, and overlays across Linux architectures (x86_64,aarch64,i686,riscv64).
# Build package
nix build --impure ./packaging/nix
# Run directly
nix run --impure ./packaging/nix -- --helpnix-build packaging/nix
./result/bin/kkfetchnix develop --impure ./packaging/nixTo submit KKFetch to upstream Nixpkgs (nixpkgs/pkgs/by-name/kk/kkfetch/package.nix):
- Set
hashinsrc = fetchFromGitHub { ... }to the release source tarball SRI hash. - Replace
cargoLock.lockFilewithcargoHash = "sha256-...";(generated usingnix-prefetch-githubor running the build once to obtain the fixed-output derivation hash). - Open a PR against
NixOS/nixpkgstargetingmaster.