Unverified Commit 1904afd6 authored by K900's avatar K900 Committed by GitHub
Browse files

Merge pull request #229323 from K900/init-trayscale

trayscale: init at 0.9.6
parents c09a3404 a02f9c10
Loading
Loading
Loading
Loading
+54 −0
Original line number Diff line number Diff line
{ 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 ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -12992,6 +12992,8 @@ with pkgs;
  tran = callPackage ../tools/networking/tran { };
  trayscale = callPackage ../applications/networking/trayscale { };
  tpmmanager = libsForQt5.callPackage ../applications/misc/tpmmanager { };
  tpm-quote-tools = callPackage ../tools/security/tpm-quote-tools { };