2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, wrapGAppsHook4
|
|
|
|
, tailscale
|
|
|
|
, gtk4
|
|
|
|
, gobject-introspection
|
|
|
|
, libadwaita
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "trayscale";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.12.6";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "DeedleFake";
|
|
|
|
repo = "trayscale";
|
|
|
|
rev = "v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-4zjT5GrGOYaKD61EWG7gxAMwf2ZQivWlzaKH0h4jLGU=";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
vendorHash = "sha256-h5FdXlDvvorP9iOsKXxc6q3HwyB44faZGvw/Ew3LkkQ=";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
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; {
|
2024-07-27 06:49:29 +00:00
|
|
|
changelog = "https://github.com/DeedleFake/trayscale/releases/tag/${src.rev}";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Unofficial GUI wrapper around the Tailscale CLI client";
|
2023-05-24 13:37:59 +00:00
|
|
|
homepage = "https://github.com/DeedleFake/trayscale";
|
|
|
|
license = licenses.mit;
|
2024-07-27 06:49:29 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "trayscale";
|
2024-05-15 15:35:15 +00:00
|
|
|
platforms = platforms.linux;
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
}
|