mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
38 lines
791 B
Nix
38 lines
791 B
Nix
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
|
|
|
buildGoModule rec {
|
|
pname = "simplotask";
|
|
version = "1.16.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "umputun";
|
|
repo = "spot";
|
|
rev = "v${version}";
|
|
hash = "sha256-VnQIg5HXZZwvYpaYDF1CIphLtE4S+1zADE1WnicXOSQ=";
|
|
};
|
|
|
|
vendorHash = null;
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
ldflags = [
|
|
"-s -w"
|
|
"-X main.revision=v${version}"
|
|
];
|
|
|
|
doCheck = false;
|
|
|
|
postInstall = ''
|
|
mv $out/bin/{secrets,spot-secrets}
|
|
installManPage *.1
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Tool for effortless deployment and configuration management";
|
|
homepage = "https://spot.umputun.dev/";
|
|
maintainers = with maintainers; [ sikmir ];
|
|
license = licenses.mit;
|
|
mainProgram = "spot";
|
|
};
|
|
}
|