2019-08-21 00:52:24 +01:00
|
|
|
{ stdenv, buildGoPackage, fetchgit, qemu, docker, which, makeWrapper }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "out-of-tree";
|
2019-12-25 19:45:59 +00:00
|
|
|
version = "1.2.1";
|
2019-08-21 00:52:24 +01:00
|
|
|
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
goPackagePath = "code.dumpstack.io/tools/${pname}";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
url = "https://code.dumpstack.io/tools/${pname}.git";
|
2019-12-25 19:45:59 +00:00
|
|
|
sha256 = "0wh4yh865wgl3hs203ncdjh1gaxznmhxdg56mciibng0dghgyw7n";
|
2019-08-21 00:52:24 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapProgram $bin/bin/out-of-tree \
|
|
|
|
--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;
|
|
|
|
};
|
|
|
|
}
|