nixpkgs/pkgs/development/tools/out-of-tree/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

32 lines
813 B
Nix

{ lib, buildGoModule, fetchgit, qemu, podman, makeWrapper }:
buildGoModule rec {
pname = "out-of-tree";
version = "2.1.1";
nativeBuildInputs = [ makeWrapper ];
src = fetchgit {
rev = "refs/tags/v${version}";
url = "https://code.dumpstack.io/tools/${pname}.git";
sha256 = "sha256-XzO8NU7A5m631PjAm0F/K7qLrD+ZDSdHXaNowGaZAPo=";
};
vendorHash = "sha256-p1dqzng3ak9lrnzrEABhE1TP1lM2Ikc8bmvp5L3nUp0=";
doCheck = false;
postFixup = ''
wrapProgram $out/bin/out-of-tree \
--prefix PATH : "${lib.makeBinPath [ qemu podman ]}"
'';
meta = with lib; {
description = "kernel {module, exploit} development tool";
mainProgram = "out-of-tree";
homepage = "https://out-of-tree.io";
maintainers = [ maintainers.dump_stack ];
license = licenses.agpl3Plus;
};
}