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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
780 B
Nix
Raw Normal View History

{ lib, 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";
2023-04-07 00:40:37 +01:00
version = "2.0.4";
2019-08-21 00:52:24 +01:00
nativeBuildInputs = [ makeWrapper ];
2019-08-21 00:52:24 +01:00
src = fetchgit {
rev = "refs/tags/v${version}";
url = "https://code.dumpstack.io/tools/${pname}.git";
2023-04-07 00:40:37 +01:00
sha256 = "sha256-D2LiSDnF7g1h0XTulctCnZ+I6FZSLA0XRd9LQLOMP9c=";
2019-08-21 00:52:24 +01:00
};
vendorHash = "sha256-p1dqzng3ak9lrnzrEABhE1TP1lM2Ikc8bmvp5L3nUp0=";
2019-08-21 00:52:24 +01:00
doCheck = false;
2019-08-21 00:52:24 +01:00
postFixup = ''
wrapProgram $out/bin/out-of-tree \
2023-04-07 00:40:37 +01:00
--prefix PATH : "${lib.makeBinPath [ qemu ]}"
2019-08-21 00:52:24 +01:00
'';
meta = with lib; {
2019-08-21 00:52:24 +01:00
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;
};
}