about summary refs log tree commit diff
diff options
context:
space:
mode:
authorzendo2023-04-21 19:06:06 +0800
committerzendo2023-04-21 19:06:06 +0800
commit2ffe1a455984d37db10729b197f6e820f3ccdb5a (patch)
tree188983f53ba42ba0a29c4b716f90cefbb2b1dda2
parent543700e8140313dd59c5473e4b1156e8fc003011 (diff)
contrast: 0.0.5 -> 0.0.7
-rw-r--r--pkgs/applications/accessibility/contrast/default.nix17
1 files changed, 3 insertions, 14 deletions
diff --git a/pkgs/applications/accessibility/contrast/default.nix b/pkgs/applications/accessibility/contrast/default.nix
index d72c1043a975..9d3d568be2f6 100644
--- a/pkgs/applications/accessibility/contrast/default.nix
+++ b/pkgs/applications/accessibility/contrast/default.nix
@@ -11,14 +11,13 @@
 , ninja
 , pango
 , pkg-config
-, python3
 , rustPlatform
 , wrapGAppsHook4
 }:
 
 stdenv.mkDerivation rec {
   pname = "contrast";
-  version = "0.0.5";
+  version = "0.0.7";
 
   src = fetchFromGitLab {
     domain = "gitlab.gnome.org";
@@ -26,13 +25,13 @@ stdenv.mkDerivation rec {
     owner = "design";
     repo = "contrast";
     rev = version;
-    sha256 = "cypSbqLwSmauOoWOuppWpF3hvrxiqmkLspxAWzvlUC0=";
+    hash = "sha256-waoXv8dzqynkpfEPZSgZnS6fyo9+9+3Q2oy2fMtEsoE=";
   };
 
   cargoDeps = rustPlatform.fetchCargoTarball {
     inherit src;
     name = "${pname}-${version}";
-    hash = "sha256-W4FyqwJpimf0isQRCq9TegpTQPQfsumx40AFQCFG5VQ=";
+    hash = "sha256-94QwPSiGjjPuskg5w6QfM5FuChFno7f9dh0Xr2wWKCI=";
   };
 
   nativeBuildInputs = [
@@ -41,12 +40,10 @@ stdenv.mkDerivation rec {
     meson
     ninja
     pkg-config
-    python3
     rustPlatform.rust.cargo
     rustPlatform.cargoSetupHook
     rustPlatform.rust.rustc
     wrapGAppsHook4
-    glib # for glib-compile-resources
   ];
 
   buildInputs = [
@@ -57,13 +54,6 @@ stdenv.mkDerivation rec {
     pango
   ];
 
-  postPatch = ''
-    patchShebangs build-aux/meson_post_install.py
-    # https://gitlab.gnome.org/World/design/contrast/-/merge_requests/23
-    substituteInPlace build-aux/meson_post_install.py \
-      --replace "gtk-update-icon-cache" "gtk4-update-icon-cache"
-  '';
-
   meta = with lib; {
     description = "Checks whether the contrast between two colors meet the WCAG requirements";
     homepage = "https://gitlab.gnome.org/World/design/contrast";
@@ -74,4 +64,3 @@ stdenv.mkDerivation rec {
     broken = stdenv.isDarwin;
   };
 }
-