From 5631a611006e6cfebcaaf69f5b9a93f60523ed59 Mon Sep 17 00:00:00 2001 From: genga Date: Thu, 14 Nov 2024 19:49:44 +0300 Subject: [PATCH] ivyterm: 0-unstable-2024-10-23 > 1.0.0 ivyterm: 0-unstable-2024-10-23 > 1.0.0 ivyterm: add passthru script --- pkgs/by-name/iv/ivyterm/package.nix | 34 ++++++++++++++++------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/pkgs/by-name/iv/ivyterm/package.nix b/pkgs/by-name/iv/ivyterm/package.nix index b5c7c26f09ce..56cac36495a3 100644 --- a/pkgs/by-name/iv/ivyterm/package.nix +++ b/pkgs/by-name/iv/ivyterm/package.nix @@ -4,27 +4,25 @@ fetchFromGitHub, pkg-config, wrapGAppsHook4, - cairo, - gdk-pixbuf, - glib, - gtk4, libadwaita, - pango, vte-gtk4, + openssl, + nix-update-script, }: -rustPlatform.buildRustPackage { +rustPlatform.buildRustPackage rec { pname = "ivyterm"; - version = "0-unstable-2024-10-23"; + version = "1.0.0"; src = fetchFromGitHub { owner = "Tomiyou"; repo = "ivyterm"; - rev = "13ee76dfc88bc92807e328991c7a8586a5b13ac7"; - hash = "sha256-RVHGDgaNYhR/eGTu4bhJvEfd14qFP+u8ApItVc00Bm8="; + tag = "v${version}"; + hash = "sha256-2wOTUJRFtT7lJ8Km7J7qT6CIRi7wZmNAp1UHfrksyss="; }; - cargoHash = "sha256-tdaI0diwRjqERmAiuKFhMw4AeqxgMq8YMsZWBjsmd0U="; + useFetchCargoVendor = true; + cargoHash = "sha256-SyyXpV4BfXFm5SHsrXHVNXFm8xM1gBv9lBRXuHVN+lQ="; nativeBuildInputs = [ pkg-config @@ -32,18 +30,24 @@ rustPlatform.buildRustPackage { ]; buildInputs = [ - cairo - gdk-pixbuf - glib - gtk4 + openssl libadwaita - pango vte-gtk4 ]; + postInstall = '' + install -D data/com.tomiyou.ivyTerm.desktop -t $out/share/applications + install -D data/com.tomiyou.ivyTerm.svg -t $out/share/icons + ''; + + passthru = { + updateScript = nix-update-script { }; + }; + meta = { description = "Terminal emulator implemented in gtk4-rs and VTE4"; homepage = "https://github.com/Tomiyou/ivyterm"; + changelog = "https://github.com/Tomiyou/ivyterm/releases/tag/${src.tag}"; license = lib.licenses.gpl3Only; maintainers = with lib.maintainers; [ genga898 ]; mainProgram = "ivyterm";