From 7453f378ea889a237e936ec6a84d11a812a56a4a Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Sat, 25 Apr 2015 00:01:10 +0300 Subject: [PATCH] trinity: init at version 1.5 --- pkgs/os-specific/linux/trinity/default.nix | 31 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/os-specific/linux/trinity/default.nix diff --git a/pkgs/os-specific/linux/trinity/default.nix b/pkgs/os-specific/linux/trinity/default.nix new file mode 100644 index 000000000000..9b7e2a6876ad --- /dev/null +++ b/pkgs/os-specific/linux/trinity/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchFromGitHub }: + +stdenv.mkDerivation rec { + name = "trinity-${version}"; + version = "1.5"; + + src = fetchFromGitHub { + owner = "kernelslacker"; + repo = "trinity"; + rev = "v${version}"; + sha256 = "0diwkda6n7yw8plfanivncwangk2kv1acxv0kyk3ly5jhlajwc0s"; + }; + + patchPhase = '' + patchShebangs ./configure.sh + patchShebangs ./scripts/ + substituteInPlace Makefile --replace '/usr/bin/wc' 'wc' + ''; + + 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9e406e5ff419..69160ec97f3a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9604,6 +9604,8 @@ let guile = guile_1_8; }; + trinity = callPackage ../os-specific/linux/trinity { }; + tunctl = callPackage ../os-specific/linux/tunctl { }; ubootChooser = name : if name == "upstream" then ubootUpstream