nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 58 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 pkg-config, 6 libevdev, 7 kmod, 8 bash, 9 installShellFiles, 10}: 11let 12 pname = "modprobed-db"; 13 version = "2.48"; 14in 15stdenv.mkDerivation { 16 inherit pname version; 17 18 src = fetchFromGitHub { 19 owner = "graysky2"; 20 repo = "modprobed-db"; 21 rev = "v${version}"; 22 hash = "sha256-rMkPBRg0QluMmSCAWSvET7rS/A2aUL6H31KKoZ6NTEs="; 23 }; 24 25 strictDeps = true; 26 nativeBuildInputs = [ 27 pkg-config 28 installShellFiles 29 ]; 30 buildInputs = [ 31 kmod 32 libevdev 33 bash 34 ]; 35 36 installFlags = [ 37 "PREFIX=$(out)" 38 "INITDIR_SYSTEMD=$(out)/lib/systemd/user" 39 ]; 40 41 postPatch = '' 42 substituteInPlace ./common/modprobed-db.in \ 43 --replace "/usr/share" "$out/share" 44 ''; 45 46 postInstall = '' 47 installShellCompletion --zsh common/zsh-completion 48 ''; 49 50 meta = { 51 homepage = "https://github.com/graysky2/modprobed-db"; 52 description = "Useful utility for users wishing to build a minimal kernel via a make localmodconfig"; 53 license = lib.licenses.mit; 54 maintainers = with lib.maintainers; [ NotAShelf ]; 55 mainProgram = "modprobed-db"; 56 platforms = lib.platforms.linux; 57 }; 58}