about summary refs log tree commit diff
path: root/pkgs/by-name
diff options
context:
space:
mode:
authoraleksana <me@aleksana.moe>2024-08-20 12:32:48 +0800
committeraleksana <me@aleksana.moe>2024-08-20 12:32:48 +0800
commitae3e0af87217e16d6f798adf48b0e7919c663548 (patch)
treea2aa31642b13b4bfa5a179c16abd2797fe684831 /pkgs/by-name
parentc2285d968a0e7c06428e349cb447706c09bbfe22 (diff)
ptyxis: switch to finalAttrs pattern
Diffstat (limited to 'pkgs/by-name')
-rw-r--r--pkgs/by-name/pt/ptyxis/package.nix21
1 files changed, 7 insertions, 14 deletions
diff --git a/pkgs/by-name/pt/ptyxis/package.nix b/pkgs/by-name/pt/ptyxis/package.nix
index cee003e5f7d9f..1242c560c822e 100644
--- a/pkgs/by-name/pt/ptyxis/package.nix
+++ b/pkgs/by-name/pt/ptyxis/package.nix
@@ -14,27 +14,24 @@
   pcre2,
 }:
 
-let
+stdenv.mkDerivation (finalAttrs: {
+  pname = "ptyxis";
   version = "46.5";
 
   src = fetchFromGitLab {
     domain = "gitlab.gnome.org";
     owner = "chergert";
     repo = "ptyxis";
-    rev = version;
+    rev = finalAttrs.version;
     hash = "sha256-PHjQJEM0W26ZpzW//+gsYCCq0lcikWh0707kDXxryAo=";
   };
 
   vte-gtk4-patched = vte-gtk4.overrideAttrs (prev: {
     patches = (prev.patches or [ ]) ++ [
-      "${src}/build-aux/0001-a11y-implement-GtkAccessibleText.patch"
-      "${src}/build-aux/0001-add-notification-and-shell-precmd-preexec.patch"
+      "${finalAttrs.src}/build-aux/0001-a11y-implement-GtkAccessibleText.patch"
+      "${finalAttrs.src}/build-aux/0001-add-notification-and-shell-precmd-preexec.patch"
     ];
   });
-in
-stdenv.mkDerivation {
-  pname = "ptyxis";
-  inherit version src;
 
   nativeBuildInputs = [
     meson
@@ -47,15 +44,11 @@ stdenv.mkDerivation {
   buildInputs = [
     libadwaita
     json-glib
-    vte-gtk4-patched
+    finalAttrs.vte-gtk4-patched
     libportal-gtk4
     pcre2
   ];
 
-  passthru = {
-    inherit vte-gtk4-patched;
-  };
-
   meta = {
     description = "Terminal for GNOME with first-class support for containers";
     homepage = "https://gitlab.gnome.org/chergert/ptyxis";
@@ -64,4 +57,4 @@ stdenv.mkDerivation {
     maintainers = with lib.maintainers; [ aleksana ];
     platforms = lib.platforms.linux;
   };
-}
+})