2020-05-30 16:11:37 +01:00
|
|
|
{ stdenv, buildGoModule, fetchgit, qemu, docker, which, makeWrapper }:
|
2019-08-21 00:52:24 +01:00
|
|
|
|
2020-05-30 16:11:37 +01:00
|
|
|
buildGoModule rec {
|
2019-08-21 00:52:24 +01:00
|
|
|
pname = "out-of-tree";
|
2020-05-30 16:11:37 +01:00
|
|
|
version = "1.3.0";
|
2019-08-21 00:52:24 +01:00
|
|
|
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
url = "https://code.dumpstack.io/tools/${pname}.git";
|
2020-05-30 16:11:37 +01:00
|
|
|
sha256 = "02xh23nbwyyf087jqkm97jbnwpja1myaz190q5r166mpwcdpz2dn";
|
2019-08-21 00:52:24 +01:00
|
|
|
};
|
|
|
|
|
2020-05-30 16:11:37 +01:00
|
|
|
vendorSha256 = "1dk0cipdgj2yyg1bc9l7nvy4y373pmqwy8xiyc0wg7pchb4h9p7s";
|
2019-08-21 00:52:24 +01:00
|
|
|
|
|
|
|
postFixup = ''
|
2020-04-28 02:50:57 +01:00
|
|
|
wrapProgram $out/bin/out-of-tree \
|
2019-08-21 00:52:24 +01:00
|
|
|
--prefix PATH : "${stdenv.lib.makeBinPath [ qemu docker which ]}"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "kernel {module, exploit} development tool";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://out-of-tree.io";
|
2019-08-21 00:52:24 +01:00
|
|
|
maintainers = [ maintainers.dump_stack ];
|
|
|
|
license = licenses.agpl3Plus;
|
|
|
|
};
|
|
|
|
}
|