nixpkgs/pkgs/development/tools/out-of-tree/default.nix

29 lines
788 B
Nix
Raw Normal View History

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-06-14 22:53:13 +01:00
version = "1.4.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-06-14 22:53:13 +01:00
sha256 = "1rn824l3dzh3xjxsbzzj053qg1abhzjimc8l73r0n5qrl44k2qk2";
2019-08-21 00:52:24 +01:00
};
2020-06-14 22:53:13 +01:00
vendorSha256 = "0kg5c4h7xnwfcfshrh5n76xv98wzr73kxzr8q65iphsjimbxcpy3";
2019-08-21 00:52:24 +01:00
postFixup = ''
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";
homepage = "https://out-of-tree.io";
2019-08-21 00:52:24 +01:00
maintainers = [ maintainers.dump_stack ];
license = licenses.agpl3Plus;
};
}