summary refs log tree commit diff
path: root/pkgs/development/tools/out-of-tree/default.nix
blob: 5faeec2387d47c6e4bb0d39178df86094ac50c8d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ stdenv, buildGoPackage, fetchgit, qemu, docker, which, makeWrapper }:

buildGoPackage rec {
  pname = "out-of-tree";
  version = "1.2.1";

  buildInputs = [ makeWrapper ];

  goPackagePath = "code.dumpstack.io/tools/${pname}";

  src = fetchgit {
    rev = "refs/tags/v${version}";
    url = "https://code.dumpstack.io/tools/${pname}.git";
    sha256 = "0wh4yh865wgl3hs203ncdjh1gaxznmhxdg56mciibng0dghgyw7n";
  };

  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";
    homepage = "https://out-of-tree.io";
    maintainers = [ maintainers.dump_stack ];
    license = licenses.agpl3Plus;
  };
}