nixpkgs/pkgs/os-specific/linux/trinity/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
997 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, fetchpatch }:
2015-04-24 21:01:10 +00:00
stdenv.mkDerivation rec {
2019-05-28 18:39:26 +00:00
pname = "trinity";
2019-06-01 14:18:26 +00:00
version = "1.9";
2015-04-24 21:01:10 +00:00
src = fetchFromGitHub {
owner = "kernelslacker";
repo = "trinity";
2019-06-01 14:18:26 +00:00
rev = "v${version}";
sha256 = "0z1a7x727xacam74jccd223k303sllgwpq30lnq9b6xxy8b659bv";
2015-04-24 21:01:10 +00:00
};
patches = [
# Pull upstream fix for -fno-common toolchains
(fetchpatch {
name = "fno-common.patch";
url = "https://github.com/kernelslacker/trinity/commit/e53e25cc8dd5bdb5f7d9b4247de9e9921eec81d8.patch";
sha256 = "0dbhyc98x11cmac6rj692zymnfqfqcbawlrkg1lhgfagzjxxwshg";
})
];
postPatch = ''
2019-05-28 18:39:26 +00:00
patchShebangs configure
patchShebangs scripts
2015-04-24 21:01:10 +00:00
'';
enableParallelBuilding = true;
makeFlags = [ "DESTDIR=$(out)" ];
2015-04-24 21:01:10 +00:00
meta = with lib; {
2015-04-24 21:01:10 +00:00
description = "A Linux System call fuzz tester";
homepage = "https://codemonkey.org.uk/projects/trinity/";
2015-04-24 21:01:10 +00:00
license = licenses.gpl2;
maintainers = [ maintainers.dezgeg ];
platforms = platforms.linux;
};
}