inotify-tools: add fanotify support and refactor package expression (#233767)
This commit is contained in:
parent
fe25c3de63
commit
4ae4dd49c6
@ -1,16 +1,20 @@
|
||||
{ lib, stdenv, autoreconfHook, fetchFromGitHub, nix-update-script }:
|
||||
{ lib, stdenv, autoreconfHook, fetchFromGitHub, nix-update-script, fanotifySupport ? true }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "inotify-tools";
|
||||
version = "3.22.6.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
repo = "inotify-tools";
|
||||
owner = "inotify-tools";
|
||||
rev = version;
|
||||
sha256 = "sha256-EYWVSgwoMjAlc/V5kv+2jfxEqWVW/lEoIxVd+ctEMsk=";
|
||||
rev = finalAttrs.version;
|
||||
hash = "sha256-EYWVSgwoMjAlc/V5kv+2jfxEqWVW/lEoIxVd+ctEMsk=";
|
||||
};
|
||||
|
||||
configureFlags = [
|
||||
(lib.enableFeature fanotifySupport "fanotify")
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
|
||||
passthru = {
|
||||
@ -23,4 +27,4 @@ stdenv.mkDerivation rec {
|
||||
maintainers = with maintainers; [ marcweber pSub shamilton ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user