depot/third_party/nixpkgs/pkgs/by-name/sn/snippetexpander/package.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

47 lines
834 B
Nix

{ lib
, buildGoModule
, fetchFromSourcehut
, scdoc
, installShellFiles
, snippetexpanderd
}:
buildGoModule rec {
inherit (snippetexpanderd) src version;
pname = "snippetexpander";
vendorHash = "sha256-wSAho59yxcXTu1zQ5x783HT4gtfSM4GdsOEeC1wfHhE=";
proxyVendor = true;
modRoot = "cmd/snippetexpander";
nativeBuildInputs = [
scdoc
installShellFiles
];
buildInputs = [
snippetexpanderd
];
ldflags = [
"-s"
"-w"
];
postInstall = ''
make man
installManPage snippetexpander.1
'';
meta = with lib; {
description = "Your little expandable text snippet helper CLI";
homepage = "https://snippetexpander.org";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ ianmjones ];
platforms = platforms.linux;
mainProgram = "snippetexpander";
};
}