5 , enableShared ? !stdenv.hostPlatform.isStatic
6 , enableManpages ? false
10 stdenv.mkDerivation rec {
11 pname = "fsverity-utils";
14 outputs = [ "out" "lib" "dev" ] ++ lib.optional enableManpages "man";
17 url = "https://git.kernel.org/pub/scm/fs/fsverity/fsverity-utils.git/snapshot/fsverity-utils-v${version}.tar.gz";
18 sha256 = "sha256-FZN4MKNmymIXZ2Q0woA0SLzPf4SaUJkj4ssKPsY4xXc=";
21 patches = lib.optionals (!enableShared) [
22 ./remove-dynamic-libs.patch
25 enableParallelBuilding = true;
28 nativeBuildInputs = lib.optional enableManpages pandoc;
29 buildInputs = [ openssl ];
31 makeFlags = [ "DESTDIR=$(out)" "PREFIX=" ] ++ lib.optional enableShared "USE_SHARED_LIB=1";
35 installTargets = [ "install" ] ++ lib.optional enableManpages "install-man";
43 homepage = "https://www.kernel.org/doc/html/latest/filesystems/fsverity.html#userspace-utility";
44 changelog = "https://git.kernel.org/pub/scm/fs/fsverity/fsverity-utils.git/tree/NEWS.md";
45 description = "Set of userspace utilities for fs-verity";
46 mainProgram = "fsverity";
47 license = licenses.mit;
48 maintainers = with maintainers; [ jk ];
49 platforms = platforms.linux;