nixpkgs/pkgs/tools/text/peco/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
678 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "peco";
version = "0.5.11";
subPackages = [ "cmd/peco" ];
src = fetchFromGitHub {
owner = "peco";
repo = "peco";
rev = "v${version}";
sha256 = "sha256-OVUfeNpnmuJsgD//JTn6n9n4oOBxep69LhIpHX+ru2w=";
};
vendorHash = "sha256-+HQz7UUgATdgSWlI1dg2DdQRUSke9MyAtXgLikFhF90=";
meta = with lib; {
description = "Simplistic interactive filtering tool";
mainProgram = "peco";
homepage = "https://github.com/peco/peco";
changelog = "https://github.com/peco/peco/blob/v${version}/Changes";
license = licenses.mit;
maintainers = with maintainers; [ pSub ];
};
}