From 491a71d6e49f9bb18d47f0ed59554d6e3a14d77b Mon Sep 17 00:00:00 2001 From: jolheiser Date: Sat, 12 Aug 2023 19:04:52 -0500 Subject: [PATCH] feat: tclip Signed-off-by: jolheiser --- default.nix | 1 + pkgs/tclip/default.nix | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/tclip/default.nix diff --git a/default.nix b/default.nix index 178f1f4..e6f10f2 100644 --- a/default.nix +++ b/default.nix @@ -19,4 +19,5 @@ # Other projects prospect-mail = pkgs.callPackage ./pkgs/prospect-mail {}; + tclip = pkgs.callPackage ./pkgs/tclip {}; } diff --git a/pkgs/tclip/default.nix b/pkgs/tclip/default.nix new file mode 100644 index 0000000..cfdd58c --- /dev/null +++ b/pkgs/tclip/default.nix @@ -0,0 +1,28 @@ +{ + buildGoModule, + fetchFromGitHub, + lib, + ... +}: +buildGoModule rec { + pname = "tclip"; + version = "2c99626eb040cb9a54cdf4015c5d2bfd0a7be038"; + + src = fetchFromGitHub { + owner = "tailscale-dev"; + repo = "tclip"; + rev = version; + sha256 = "sha256-quSaM5LzBNdl2cx+1oRcavg1Z0IXZSBk58IBqUgK/4o="; + }; + + vendorSha256 = "sha256-uTgoZmy8w/NbTi6jcPP7wS0GtvTmecNLWb2iYu3PH30="; + + ldflags = ["-s" "-w"]; + + meta = with lib; { + description = "tclip client"; + homepage = "https://github.com/tailscale-dev/tclip"; + license = licenses.bsd3; + mainProgram = "tclip"; + }; +}