all repos — nix-packages @ 315b8d7ca6086d8c19491055b796b21306d5720a

My personal collection of packages for nix

pkgs/lunchy-go: init

Alin
commit

315b8d7ca6086d8c19491055b796b21306d5720a

parent

42d9c54e0d2db8b6afc150bea41336e40680e4ab

1 file changed, 33 insertions(+), 0 deletions(-)

changed files
A pkgs/lunchy-go/default.nix
@@ -0,0 +1,33 @@
+{ + lib, + buildGoModule, + fetchFromGitHub, +}: + +buildGoModule (finalAttrs: { + pname = "lunchy-go"; + version = "0.2.1-unstable-2022-02-12"; + + src = fetchFromGitHub { + owner = "sosedoff"; + repo = "lunchy-go"; + tag = finalAttrs.version; + hash = "sha256-YEaYtUH2bOIJ9I4JXcFAydCx30l11N8gszr7UlnqbF0="; + }; + + vendorHash = null; + + ldflags = [ "-s" ]; + + postInstall = '' + mv $out/bin/lunchy-go $out/bin/lunchy + ''; + + meta = { + description = "A friendly wrapper for macOS launchctl."; + homepage = "https://github.com/sosedoff/lunchy-go"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ alinnow ]; + mainProgram = "lunchy-go"; + }; +})