lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

pick-colour-picker: init at unstable-2019-10-11

authored by

Maciej Krüger and committed by
Jon
9af73d93 75b8f382

+70
+66
pkgs/applications/graphics/pick-colour-picker/default.nix
··· 1 + { stdenv 2 + , fetchFromGitHub 3 + , buildPythonPackage 4 + , pygobject3 5 + , pycairo 6 + , glib 7 + , gtk3 8 + , gobject-introspection 9 + , wrapGAppsHook 10 + , python 11 + }: 12 + 13 + buildPythonPackage rec { 14 + pname = "pick-colour-picker"; 15 + version = "unstable-2019-10-11"; # "1.5.0-3ec940" 16 + 17 + src = fetchFromGitHub { 18 + owner = "stuartlangridge"; 19 + repo = "ColourPicker"; 20 + rev = "3ec9406d787ce373f6db0d520ed38a921edb9473"; 21 + sha256 = "04l8ch9297nhkgcmyhsbg0il424c8vy0isns1c7aypn0zp0dc4zd"; 22 + }; 23 + 24 + nativeBuildInputs = [ 25 + gobject-introspection 26 + wrapGAppsHook 27 + ]; 28 + 29 + pythonPath = [ 30 + pygobject3 31 + pycairo 32 + ]; 33 + 34 + buildInputs = [ 35 + glib 36 + gtk3 37 + ]; 38 + 39 + # https://github.com/NixOS/nixpkgs/issues/56943 40 + # this must be false, otherwise the gobject-introspection hook doesn't run 41 + strictDeps = false; 42 + 43 + preDistPhases = [ "fixupIconPath" ]; 44 + 45 + fixupIconPath = '' 46 + pickLoc="$out/${python.sitePackages}/pick" 47 + shareLoc=$(echo "$out/${python.sitePackages}/nix/store/"*) 48 + mv "$shareLoc/share" "$out/share" 49 + 50 + sed "s|os.environ.get('SNAP'), \"usr\"|'$out'|g" -i "$pickLoc/__main__.py" 51 + ''; 52 + 53 + meta = with stdenv.lib; { 54 + homepage = "https://kryogenix.org/code/pick/"; 55 + license = licenses.mit; 56 + platforms = platforms.linux; 57 + description = "A colour picker that remembers where you picked colours from"; 58 + maintainers = [ maintainers.mkg20001 ]; 59 + 60 + longDescription = '' 61 + Pick lets you pick colours from anywhere on your screen. Choose the colour you want and Pick remembers it, names it, and shows you a screenshot so you can remember where you got it from. 62 + 63 + Zoom all the way in to pixels to pick just the right one. Show your colours in your choice of format: rgba() or hex, CSS or Gdk or Qt, whichever you prefer. Copy to the clipboard ready for pasting into code or graphics apps. 64 + ''; 65 + }; 66 + }
+4
pkgs/top-level/all-packages.nix
··· 24964 24964 24965 24965 rfc-bibtex = python3Packages.callPackage ../development/python-modules/rfc-bibtex { }; 24966 24966 24967 + pick-colour-picker = python3Packages.callPackage ../applications/graphics/pick-colour-picker { 24968 + inherit (pkgs) glib gtk3 gobject-introspection wrapGAppsHook; 24969 + }; 24970 + 24967 24971 rpl = callPackage ../tools/text/rpl { 24968 24972 pythonPackages = python3Packages; 24969 24973 };