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