mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-18 02:05:51 +03:00
Merge pull request #280831 from NotAShelf/modprobed-db
This commit is contained in:
commit
6296c64c60
50
pkgs/by-name/mo/modprobed-db/package.nix
Normal file
50
pkgs/by-name/mo/modprobed-db/package.nix
Normal file
@ -0,0 +1,50 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, pkg-config
|
||||
, libevdev
|
||||
, kmod
|
||||
, bash
|
||||
, installShellFiles
|
||||
}:
|
||||
let
|
||||
pname = "modprobed-db";
|
||||
version = "2.46";
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
inherit pname version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "graysky2";
|
||||
repo = "modprobed-db";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-GQME5CAZsGVHSPowKQMyUR7OjHeFZi/5YcWFUT9L/AQ=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = [ pkg-config installShellFiles ];
|
||||
buildInputs = [ kmod libevdev bash ];
|
||||
|
||||
installFlags = [
|
||||
"PREFIX=$(out)"
|
||||
"INITDIR_SYSTEMD=$(out)/lib/systemd/user"
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace ./common/modprobed-db.in \
|
||||
--replace "/usr/share" "$out/share"
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion --zsh common/zsh-completion
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/graysky2/modprobed-db";
|
||||
description = "Useful utility for users wishing to build a minimal kernel via a make localmodconfig";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ NotAShelf ];
|
||||
mainProgram = "modprobed-db";
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user