2024-04-21 15:54:59 +00:00
|
|
|
{ lib
|
2024-07-27 06:49:29 +00:00
|
|
|
, buildGoModule
|
2024-04-21 15:54:59 +00:00
|
|
|
, copyDesktopItems
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, wrapGAppsHook4
|
|
|
|
, gobject-introspection
|
|
|
|
, gtk4
|
|
|
|
, gtksourceview5
|
|
|
|
, libadwaita
|
|
|
|
, libxml2
|
|
|
|
, vte-gtk4
|
|
|
|
}:
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
buildGoModule rec {
|
2024-04-21 15:54:59 +00:00
|
|
|
pname = "seabird";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.5.1";
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "getseabird";
|
|
|
|
repo = "seabird";
|
|
|
|
rev = "v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-y+QIBqU3kAxedhWLnu07m9HQOCgHfOvVscIxxWtUcZo=";
|
2024-04-21 15:54:59 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
vendorHash = "sha256-4o9z4XjtW7kNHAb8L0kuq9rgQzTwvAAXcl6+RIGjmqI=";
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
copyDesktopItems
|
2024-06-24 18:47:55 +00:00
|
|
|
gobject-introspection
|
2024-04-21 15:54:59 +00:00
|
|
|
libxml2
|
|
|
|
pkg-config
|
|
|
|
wrapGAppsHook4
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk4
|
|
|
|
gtksourceview5
|
|
|
|
libadwaita
|
|
|
|
vte-gtk4
|
|
|
|
];
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
2024-06-24 18:47:55 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace main.go --replace-fail 'version = "dev"' 'version = "${version}"'
|
|
|
|
'';
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
go generate internal/icon/icon.go
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
install -Dm644 internal/icon/seabird.svg $out/share/pixmaps/dev.skynomads.Seabird.svg
|
|
|
|
'';
|
|
|
|
|
|
|
|
desktopItems = [ "dev.skynomads.Seabird.desktop" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Native Kubernetes desktop client";
|
|
|
|
homepage = "https://getseabird.github.io";
|
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = with maintainers; [ nicolas-goudry ];
|
|
|
|
mainProgram = "seabird";
|
|
|
|
};
|
|
|
|
}
|