1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00
nixpkgs/pkgs/os-specific/linux/trinity/default.nix

33 lines
879 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, linuxHeaders }:
2015-04-24 22:01:10 +01:00
stdenv.mkDerivation rec {
name = "trinity-${version}";
version = "1.6";
2015-04-24 22:01:10 +01:00
src = fetchFromGitHub {
owner = "kernelslacker";
repo = "trinity";
rev = "v${version}";
sha256 = "1jwgsjjbngn2dsnkflyigy3ajd0szksl30dlaiy02jc6mqi3nr0p";
2015-04-24 22:01:10 +01:00
};
patchPhase = ''
patchShebangs ./configure.sh
patchShebangs ./scripts/
substituteInPlace Makefile --replace '/usr/bin/wc' 'wc'
substituteInPlace configure.sh --replace '/usr/include/linux' '${linuxHeaders}/include/linux'
2015-04-24 22:01:10 +01:00
'';
configurePhase = "./configure.sh";
installPhase = "make DESTDIR=$out install";
meta = with stdenv.lib; {
description = "A Linux System call fuzz tester";
homepage = http://codemonkey.org.uk/projects/trinity/;
license = licenses.gpl2;
maintainers = [ maintainers.dezgeg ];
platforms = platforms.linux;
};
}