2023-10-19 13:55:26 +00:00
|
|
|
{ lib, buildGoModule, fetchgit, qemu, podman, makeWrapper }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-06-02 18:00:15 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "out-of-tree";
|
2023-10-19 13:55:26 +00:00
|
|
|
version = "2.1.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
url = "https://code.dumpstack.io/tools/${pname}.git";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-XzO8NU7A5m631PjAm0F/K7qLrD+ZDSdHXaNowGaZAPo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = "sha256-p1dqzng3ak9lrnzrEABhE1TP1lM2Ikc8bmvp5L3nUp0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
postFixup = ''
|
2020-05-15 21:57:56 +00:00
|
|
|
wrapProgram $out/bin/out-of-tree \
|
2023-10-19 13:55:26 +00:00
|
|
|
--prefix PATH : "${lib.makeBinPath [ qemu podman ]}"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "kernel {module, exploit} development tool";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "out-of-tree";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://out-of-tree.io";
|
|
|
|
maintainers = [ maintainers.dump_stack ];
|
|
|
|
license = licenses.agpl3Plus;
|
|
|
|
};
|
|
|
|
}
|