Merge pull request #322526 from getchoo/pkgs/contrast/adopt

contrast: adopt; refactor
This commit is contained in:
Aleksana 2024-07-06 18:38:07 +08:00 committed by GitHub
commit 1bd0789b2e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 27 additions and 25 deletions

View File

@ -1,20 +1,22 @@
{ stdenv
, lib
, fetchFromGitLab
, cairo
, cargo
, desktop-file-utils
, gettext
, glib
, gtk4
, libadwaita
, meson
, ninja
, pango
, pkg-config
, rustPlatform
, rustc
, wrapGAppsHook4
{
stdenv,
lib,
fetchFromGitLab,
cairo,
cargo,
desktop-file-utils,
gettext,
glib,
gtk4,
libadwaita,
meson,
ninja,
nix-update-script,
pango,
pkg-config,
rustPlatform,
rustc,
wrapGAppsHook4,
}:
stdenv.mkDerivation rec {
@ -56,14 +58,16 @@ stdenv.mkDerivation rec {
pango
];
meta = with lib; {
passthru = {
updateScript = nix-update-script { };
};
meta = {
description = "Checks whether the contrast between two colors meet the WCAG requirements";
homepage = "https://gitlab.gnome.org/World/design/contrast";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ ];
platforms = platforms.unix;
# never built on aarch64-darwin, x86_64-darwin since first introduction in nixpkgs
broken = stdenv.isDarwin;
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ getchoo ];
mainProgram = "contrast";
platforms = lib.platforms.linux;
};
}

View File

@ -4717,8 +4717,6 @@ with pkgs;
clockify = callPackage ../applications/office/clockify { };
contrast = callPackage ../applications/accessibility/contrast { };
cplex = callPackage ../applications/science/math/cplex (config.cplex or {});
cpulimit = callPackage ../tools/misc/cpulimit { };