Jörg Thalheim 8a6c765832
command-not-found: rewrite in Rust
- drops perl + libraries dependencies
2020-12-30 07:50:28 +01:00

19 lines
458 B
Nix

{ stdenv, rustPlatform, pkgconfig, sqlite
, dbPath ? "/nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite" }:
rustPlatform.buildRustPackage {
name = "command-not-found";
src = ./rust;
DB_PATH = dbPath;
NIX_SYSTEM = stdenv.system;
postInstall = ''
strip $out/bin/command-not-found
'';
buildInputs = [ sqlite ];
nativeBuildInputs = [ pkgconfig ];
cargoSha256 = "13q61bb4b1q40g424pbssyp3ln79q1a33vmyz9s9wlqnac34cibd";
}