pkgs/lunchy-go: init
2 files changed, 34 insertions(+), 0 deletions(-)
changed files
M default.nix → default.nix
@@ -18,4 +18,5 @@ overlays = import ./overlays; # nixpkgs overlays dirstat-rs = pkgs.callPackage ./pkgs/dirstat-rs { }; projectdo = pkgs.callPackage ./pkgs/projectdo { }; + lunchy-go = pkgs.callPackage ./pkgs/lunchy-go { }; }
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"; + }; +})