Unverified Commit fb88560f authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

ivyterm: 0-unstable-2024-10-23 > 1.0.0 (#366885)

parents 9d61fbb6 5631a611
Loading
Loading
Loading
Loading
+19 −15
Original line number Diff line number Diff line
@@ -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";