nixpkgs/pkgs/development/tools/packet/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

27 lines
623 B
Nix

{ lib, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
pname = "packet";
version = "2.2.2";
goPackagePath = "github.com/ebsarr/packet";
src = fetchFromGitHub {
owner = "ebsarr";
repo = "packet";
rev = "v${version}";
sha256 = "sha256-jm9u+LQE48aqO6CLdLZAw38woH1phYnEYpEsRbNwyKI=";
};
goDeps = ./deps.nix;
meta = with lib; {
description = "a CLI tool to manage packet.net services";
mainProgram = "packet";
homepage = "https://github.com/ebsarr/packet";
license = licenses.mit;
maintainers = with maintainers; [ grahamc ];
platforms = platforms.unix;
};
}