contrast: 0.0.5 -> 0.0.7

This commit is contained in:
zendo 2023-04-21 19:06:06 +08:00
parent 543700e814
commit 2ffe1a4559

View File

@ -11,14 +11,13 @@
, ninja , ninja
, pango , pango
, pkg-config , pkg-config
, python3
, rustPlatform , rustPlatform
, wrapGAppsHook4 , wrapGAppsHook4
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "contrast"; pname = "contrast";
version = "0.0.5"; version = "0.0.7";
src = fetchFromGitLab { src = fetchFromGitLab {
domain = "gitlab.gnome.org"; domain = "gitlab.gnome.org";
@ -26,13 +25,13 @@ stdenv.mkDerivation rec {
owner = "design"; owner = "design";
repo = "contrast"; repo = "contrast";
rev = version; rev = version;
sha256 = "cypSbqLwSmauOoWOuppWpF3hvrxiqmkLspxAWzvlUC0="; hash = "sha256-waoXv8dzqynkpfEPZSgZnS6fyo9+9+3Q2oy2fMtEsoE=";
}; };
cargoDeps = rustPlatform.fetchCargoTarball { cargoDeps = rustPlatform.fetchCargoTarball {
inherit src; inherit src;
name = "${pname}-${version}"; name = "${pname}-${version}";
hash = "sha256-W4FyqwJpimf0isQRCq9TegpTQPQfsumx40AFQCFG5VQ="; hash = "sha256-94QwPSiGjjPuskg5w6QfM5FuChFno7f9dh0Xr2wWKCI=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -41,12 +40,10 @@ stdenv.mkDerivation rec {
meson meson
ninja ninja
pkg-config pkg-config
python3
rustPlatform.rust.cargo rustPlatform.rust.cargo
rustPlatform.cargoSetupHook rustPlatform.cargoSetupHook
rustPlatform.rust.rustc rustPlatform.rust.rustc
wrapGAppsHook4 wrapGAppsHook4
glib # for glib-compile-resources
]; ];
buildInputs = [ buildInputs = [
@ -57,13 +54,6 @@ stdenv.mkDerivation rec {
pango 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; { meta = with lib; {
description = "Checks whether the contrast between two colors meet the WCAG requirements"; description = "Checks whether the contrast between two colors meet the WCAG requirements";
homepage = "https://gitlab.gnome.org/World/design/contrast"; homepage = "https://gitlab.gnome.org/World/design/contrast";
@ -74,4 +64,3 @@ stdenv.mkDerivation rec {
broken = stdenv.isDarwin; broken = stdenv.isDarwin;
}; };
} }