Merge pull request #300517 from azahi/whatfiles

whatfiles: init at 1.0
This commit is contained in:
Weijia Wang 2024-04-01 18:34:16 +02:00 committed by GitHub
commit 3140b28fe3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,33 @@
{ lib
, stdenv
, fetchFromGitHub
}:
stdenv.mkDerivation rec {
pname = "whatfiles";
version = "1.0";
src = fetchFromGitHub {
owner = "spieglt";
repo = "whatfiles";
rev = "v${version}";
hash = "sha256-5Ju9g7/B9uxLkQzV/MN3vBkjve4EAMseO6K4HTAoS/o=";
};
installPhase = ''
runHook preInstall
install -Dm755 bin/whatfiles $out/bin/whatfiles
runHook postInstall
'';
meta = with lib; {
description = "Log what files are accessed by any Linux process";
homepage = "https://github.com/spieglt/whatfiles";
license = licenses.gpl3Only;
maintainers = with maintainers; [ azahi ];
platforms = platforms.linux;
mainProgram = "whatfiles";
};
}