nixpkgs-suyu/pkgs/os-specific/linux/extrace/default.nix

29 lines
722 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub }:
2019-05-03 10:07:52 +02:00
stdenv.mkDerivation rec {
pname = "extrace";
2021-08-06 18:25:59 +02:00
version = "0.8";
2019-05-03 10:07:52 +02:00
src = fetchFromGitHub {
owner = "leahneukirchen";
repo = "extrace";
rev = "v${version}";
2021-08-06 18:25:59 +02:00
sha256 = "sha256-Kg5yzVg9sqlOCzAq/HeFUPZ89Enfkt/r7EunCfOqdA0=";
2019-05-03 10:07:52 +02:00
};
makeFlags = [ "PREFIX=$(out)" ];
2019-05-03 10:07:52 +02:00
postInstall = ''
install -dm755 "$out/share/licenses/extrace/"
install -m644 LICENSE "$out/share/licenses/extrace/LICENSE"
'';
meta = with lib; {
homepage = "https://github.com/leahneukirchen/extrace";
2019-05-03 10:07:52 +02:00
description = "Trace exec() calls system-wide";
license = with licenses; [ gpl2 bsd2 ];
platforms = platforms.linux;
maintainers = [ maintainers.leahneukirchen ];
};
}