diff options
author | K900 <me@0upti.me> | 2023-05-01 19:57:25 +0300 |
---|---|---|
committer | K900 <me@0upti.me> | 2023-05-01 20:32:03 +0300 |
commit | a02f9c10ea0b42560c7ff8cd017ff19ad946f8c0 (patch) | |
tree | a4bf9c84c181eefe5d3ceb6f49e434b15bc85be7 /pkgs/applications/networking/trayscale/default.nix | |
parent | 76e2e65e39a3760582cca07b848f5719590190a7 (diff) |
trayscale: init at 0.9.6
Diffstat (limited to 'pkgs/applications/networking/trayscale/default.nix')
-rw-r--r-- | pkgs/applications/networking/trayscale/default.nix | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/pkgs/applications/networking/trayscale/default.nix b/pkgs/applications/networking/trayscale/default.nix new file mode 100644 index 0000000000000..173a87ac8b762 --- /dev/null +++ b/pkgs/applications/networking/trayscale/default.nix @@ -0,0 +1,54 @@ +{ lib +, buildGoModule +, fetchFromGitHub +, pkg-config +, wrapGAppsHook4 +, tailscale +, gtk4 +, gobject-introspection +, libadwaita +}: + +buildGoModule rec { + pname = "trayscale"; + version = "0.9.6"; + + src = fetchFromGitHub { + owner = "DeedleFake"; + repo = "trayscale"; + rev = "v${version}"; + hash = "sha256-qMQ0WykBHXyXZ6GkDM5l5ki27X1h8rl3sUBooqF3234="; + }; + + vendorHash = "sha256-K1Za2j4kUtsktFi9DjZYXrtfsWF1r6vIbyocLUrj5IU="; + + subPackages = [ "cmd/trayscale" ]; + + ldflags = [ + "-s" + "-w" + "-X=deedles.dev/trayscale/internal/version.version=${version}" + ]; + + nativeBuildInputs = [ pkg-config gobject-introspection wrapGAppsHook4 ]; + buildInputs = [ gtk4 libadwaita ]; + + # there are no actual tests, and it takes 20 minutes to rebuild + doCheck = false; + + postInstall = '' + sh ./dist.sh install $out + glib-compile-schemas $out/share/glib-2.0/schemas + ''; + + preFixup = '' + gappsWrapperArgs+=(--prefix PATH : "${tailscale}/bin") + ''; + + meta = with lib; { + description = "An unofficial GUI wrapper around the Tailscale CLI client"; + homepage = "https://github.com/DeedleFake/trayscale"; + license = licenses.mit; + maintainers = with maintainers; [ k900 ]; + }; +} |