Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ec40f895b971
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: e26c2baeaef6
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Oct 31, 2019

  1. contrast: init at 0.0.2

    jtojnar authored and worldofpeace committed Oct 31, 2019
    Copy the full SHA
    55191b6 View commit details
  2. Merge pull request #69030 from jtojnar/contrast

    contrast: init at 0.0.2
    worldofpeace authored Oct 31, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    e26c2ba View commit details
Showing with 73 additions and 0 deletions.
  1. +71 −0 pkgs/applications/accessibility/contrast/default.nix
  2. +2 −0 pkgs/top-level/all-packages.nix
71 changes: 71 additions & 0 deletions pkgs/applications/accessibility/contrast/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{ stdenv
, fetchFromGitLab
, cairo
, dbus
, desktop-file-utils
, gettext
, glib
, gtk3
, libhandy
, meson
, ninja
, pango
, pkgconfig
, python3
, rustc
, rustPlatform
, wrapGAppsHook
}:

rustPlatform.buildRustPackage rec {
pname = "contrast";
version = "0.0.2";

src = fetchFromGitLab {
domain = "gitlab.gnome.org";
group = "World";
owner = "design";
repo = "contrast";
rev = version;
sha256 = "0rm705zrk9rfv31pwbqxrswi5v6vhnghxa8dgxjmcrh00l8dm6j9";
};

cargoSha256 = "06vgc89d93fhjcyy9d1v6lf8kr34pl5bbpwbv2jpfahpj9y84bgj";

nativeBuildInputs = [
desktop-file-utils
gettext
meson
ninja
pkgconfig
python3
wrapGAppsHook
];

buildInputs = [
cairo
dbus
glib
gtk3
libhandy
pango
];

postPatch = ''
patchShebangs build-aux/meson_post_install.py
'';

# Don't use buildRustPackage phases, only use it for rust deps setup
configurePhase = null;
buildPhase = null;
checkPhase = null;
installPhase = null;

meta = with stdenv.lib; {
description = "Checks whether the contrast between two colors meet the WCAG requirements";
homepage = https://gitlab.gnome.org/World/design/contrast;
license = licenses.gpl3;
maintainers = with maintainers; [ jtojnar ];
};
}

2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -1427,6 +1427,8 @@ in

clipster = callPackage ../tools/misc/clipster { };

contrast = callPackage ../applications/accessibility/contrast { };

coprthr = callPackage ../development/libraries/coprthr { };

cplex = callPackage ../applications/science/math/cplex (config.cplex or {});