nixpkgs/pkgs/development/libraries/pkger/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

30 lines
719 B
Nix

{ buildGoModule
, fetchFromGitHub
, lib
}:
buildGoModule rec {
pname = "pkger";
version = "0.17.1";
src = fetchFromGitHub {
owner = "markbates";
repo = "pkger";
rev = "v${version}";
hash = "sha256-nBuOC+uVw+hYSssgTkPRJZEBkufhQgU5D6jsZZre7Is=";
};
vendorHash = "sha256-9+2s84bqoNU3aaxmWYzIuFKPA3Tw9phXu5Csaaq/L60=";
doCheck = false;
meta = with lib; {
description = "Embed static files in Go binaries (replacement for gobuffalo/packr) ";
mainProgram = "pkger";
homepage = "https://github.com/markbates/pkger";
changelog = "https://github.com/markbates/pkger/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ flokli ];
};
}