diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2024-03-09 22:45:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-09 22:45:44 +0100 |
commit | 361afcad3e0f7ce6e802bac7c95434fad7f07ecc (patch) | |
tree | 3787e867f2d29b2bda1acfdc047051cba0313f9a | |
parent | 965c27d67c44da3e186f64114f736da3ea71bc54 (diff) | |
parent | ce9915994894e467d85c7a6e9472b311df98f2d4 (diff) |
Merge pull request #292581 from nicolas-goudry/add-seabird
seabird: init at 0.2.2
-rw-r--r-- | pkgs/by-name/se/seabird/package.nix | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/pkgs/by-name/se/seabird/package.nix b/pkgs/by-name/se/seabird/package.nix new file mode 100644 index 0000000000000..2727b040674c3 --- /dev/null +++ b/pkgs/by-name/se/seabird/package.nix @@ -0,0 +1,66 @@ +{ lib +, buildGo122Module +, copyDesktopItems +, fetchFromGitHub +, pkg-config +, wrapGAppsHook4 +, gobject-introspection +, gtk4 +, gtksourceview5 +, libadwaita +, libxml2 +, vte-gtk4 +}: + +buildGo122Module rec { + pname = "seabird"; + version = "0.2.2"; + + src = fetchFromGitHub { + owner = "getseabird"; + repo = "seabird"; + rev = "v${version}"; + hash = "sha256-wrZLWDTgcUS8snCqc5rInqitAkrsStL8zmc8vjl4ApQ="; + }; + + vendorHash = "sha256-z9l6g5NkAErRQo8oiqwKG9ssm8K2S+eSZBD0w4kO3kc="; + + nativeBuildInputs = [ + copyDesktopItems + libxml2 + pkg-config + wrapGAppsHook4 + ]; + + buildInputs = [ + gobject-introspection + gtk4 + gtksourceview5 + libadwaita + vte-gtk4 + ]; + + ldflags = [ "-s" "-w" ]; + + 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"; + }; +} |