Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
68 lines
1.3 KiB
Nix
68 lines
1.3 KiB
Nix
{ lib
|
|
, buildGoModule
|
|
, copyDesktopItems
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, wrapGAppsHook4
|
|
, gobject-introspection
|
|
, gtk4
|
|
, gtksourceview5
|
|
, libadwaita
|
|
, libxml2
|
|
, vte-gtk4
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "seabird";
|
|
version = "0.5.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "getseabird";
|
|
repo = "seabird";
|
|
rev = "v${version}";
|
|
hash = "sha256-y+QIBqU3kAxedhWLnu07m9HQOCgHfOvVscIxxWtUcZo=";
|
|
};
|
|
|
|
vendorHash = "sha256-4o9z4XjtW7kNHAb8L0kuq9rgQzTwvAAXcl6+RIGjmqI=";
|
|
|
|
nativeBuildInputs = [
|
|
copyDesktopItems
|
|
gobject-introspection
|
|
libxml2
|
|
pkg-config
|
|
wrapGAppsHook4
|
|
];
|
|
|
|
buildInputs = [
|
|
gtk4
|
|
gtksourceview5
|
|
libadwaita
|
|
vte-gtk4
|
|
];
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
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";
|
|
};
|
|
}
|