mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 09:43:14 +00:00
commit
3140b28fe3
33
pkgs/by-name/wh/whatfiles/package.nix
Normal file
33
pkgs/by-name/wh/whatfiles/package.nix
Normal 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";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user