nixpkgs/pkgs/by-name/co/contrast/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

74 lines
1.3 KiB
Nix
Raw Normal View History

2024-06-26 00:23:47 +00:00
{
stdenv,
lib,
fetchFromGitLab,
cairo,
cargo,
desktop-file-utils,
gettext,
glib,
gtk4,
libadwaita,
meson,
ninja,
2024-06-26 00:30:20 +00:00
nix-update-script,
2024-06-26 00:23:47 +00:00
pango,
pkg-config,
rustPlatform,
rustc,
wrapGAppsHook4,
2019-09-16 14:42:11 +00:00
}:
stdenv.mkDerivation rec {
2019-09-16 14:42:11 +00:00
pname = "contrast";
2024-09-26 13:22:48 +00:00
version = "0.0.11";
2019-09-16 14:42:11 +00:00
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
group = "World";
owner = "design";
repo = "contrast";
rev = version;
2024-09-26 13:22:48 +00:00
hash = "sha256-8A1qX1H0cET5AUvMoHC1/VyIQiaTysEY5RJRrVYvGng=";
2019-09-16 14:42:11 +00:00
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
2024-09-26 13:22:48 +00:00
hash = "sha256-Z5Gn1J/ziDlSowUk3HYLdx1PDg0WlQJQDjto2xYYK44=";
};
2019-09-16 14:42:11 +00:00
nativeBuildInputs = [
desktop-file-utils
gettext
meson
ninja
pkg-config
cargo
rustPlatform.cargoSetupHook
rustc
wrapGAppsHook4
2019-09-16 14:42:11 +00:00
];
buildInputs = [
cairo
glib
gtk4
libadwaita
2019-09-16 14:42:11 +00:00
pango
];
2024-06-26 00:30:20 +00:00
passthru = {
updateScript = nix-update-script { };
};
meta = {
2019-09-16 14:42:11 +00:00
description = "Checks whether the contrast between two colors meet the WCAG requirements";
homepage = "https://gitlab.gnome.org/World/design/contrast";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ getchoo ];
2023-11-27 01:17:53 +00:00
mainProgram = "contrast";
platforms = lib.platforms.linux;
2019-09-16 14:42:11 +00:00
};
}