2021-01-25 09:26:54 +01:00
|
|
|
{ lib, buildGoModule, fetchgit, qemu, docker, which, makeWrapper }:
|
2019-08-21 01:52:24 +02:00
|
|
|
|
2020-05-30 17:11:37 +02:00
|
|
|
buildGoModule rec {
|
2019-08-21 01:52:24 +02:00
|
|
|
pname = "out-of-tree";
|
2020-06-14 23:53:13 +02:00
|
|
|
version = "1.4.0";
|
2019-08-21 01:52:24 +02:00
|
|
|
|
2021-02-07 10:17:39 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2019-08-21 01:52:24 +02:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
url = "https://code.dumpstack.io/tools/${pname}.git";
|
2020-06-14 23:53:13 +02:00
|
|
|
sha256 = "1rn824l3dzh3xjxsbzzj053qg1abhzjimc8l73r0n5qrl44k2qk2";
|
2019-08-21 01:52:24 +02:00
|
|
|
};
|
|
|
|
|
2020-06-14 23:53:13 +02:00
|
|
|
vendorSha256 = "0kg5c4h7xnwfcfshrh5n76xv98wzr73kxzr8q65iphsjimbxcpy3";
|
2019-08-21 01:52:24 +02:00
|
|
|
|
2020-08-04 02:26:27 +02:00
|
|
|
doCheck = false;
|
|
|
|
|
2019-08-21 01:52:24 +02:00
|
|
|
postFixup = ''
|
2020-04-28 03:50:57 +02:00
|
|
|
wrapProgram $out/bin/out-of-tree \
|
2021-01-23 13:26:19 +01:00
|
|
|
--prefix PATH : "${lib.makeBinPath [ qemu docker which ]}"
|
2019-08-21 01:52:24 +02:00
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-08-21 01:52:24 +02:00
|
|
|
description = "kernel {module, exploit} development tool";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://out-of-tree.io";
|
2019-08-21 01:52:24 +02:00
|
|
|
maintainers = [ maintainers.dump_stack ];
|
|
|
|
license = licenses.agpl3Plus;
|
|
|
|
};
|
|
|
|
}
|