From 57ec90f90f769f44d4a169b83a7298cbb36886a3 Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Tue, 25 Nov 2014 13:03:43 -0600 Subject: [PATCH] nixpkgs: Fuzzing test case optimizer Signed-off-by: Austin Seipp --- pkgs/tools/security/tmin/default.nix | 24 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/tools/security/tmin/default.nix diff --git a/pkgs/tools/security/tmin/default.nix b/pkgs/tools/security/tmin/default.nix new file mode 100644 index 000000000000..2c16e936a695 --- /dev/null +++ b/pkgs/tools/security/tmin/default.nix @@ -0,0 +1,24 @@ +{ stdenv, fetchurl, bash }: + +stdenv.mkDerivation rec { + name = "tmin-${version}"; + version = "0.05"; + + src = fetchurl { + url = "https://tmin.googlecode.com/files/${name}.tar.gz"; + sha256 = "0166kcfs4b0da4hs2aqyn41f5l09i8rwxpi20k7x17qsxbmjbpd5"; + }; + + buildPhase = '' + gcc -O3 -funroll-loops -fno-strict-aliasing -Wno-pointer-sign tmin.c -o tmin + ''; + installPhase = "mkdir -p $out/bin && mv tmin $out/bin"; + + meta = { + description = "Fuzzing tool test-case optimizer"; + homepage = "https://code.google.com/p/tmin"; + license = stdenv.lib.licenses.asl20; + platforms = stdenv.lib.platforms.linux; + maintainers = [ stdenv.lib.maintainers.thoughtpolice ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index af54d6d69edf..2855c5be3113 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2514,6 +2514,8 @@ let tmux = callPackage ../tools/misc/tmux { }; + tmin = callPackage ../tools/security/tmin { }; + tor = callPackage ../tools/security/tor { }; torbutton = callPackage ../tools/security/torbutton { };