wl-color-picker: 1.3 -> 1.4

Diff: https://github.com/jgmdev/wl-color-picker/compare/v1.3...v1.4

emaryn d7478b5d 44402219

+25 -20
+25 -20
pkgs/by-name/wl/wl-color-picker/package.nix
··· 9 9 imagemagick, 10 10 makeWrapper, 11 11 bash, 12 + libnotify, 12 13 }: 13 14 14 - stdenv.mkDerivation rec { 15 + stdenv.mkDerivation (finalAttrs: { 15 16 pname = "wl-color-picker"; 16 - version = "1.3"; 17 + version = "1.4"; 17 18 18 19 src = fetchFromGitHub { 19 20 owner = "jgmdev"; 20 21 repo = "wl-color-picker"; 21 - rev = "v${version}"; 22 - sha256 = "sha256-lvhpXy4Sd1boYNGhbPoZTJlBhlW5obltDOrEzB1Gq0A="; 22 + tag = "v${finalAttrs.version}"; 23 + hash = "sha256-u04eO5QfIEBNEoh9w0w2Kz+vyCLuIzCStyz+lKarF3w="; 23 24 }; 24 25 25 26 strictDeps = true; 26 - nativeBuildInputs = [ makeWrapper ]; 27 - buildInputs = [ bash ]; 27 + 28 + nativeBuildInputs = [ 29 + makeWrapper 30 + bash 31 + ]; 28 32 29 33 patchPhase = '' 34 + patchShebangs . 30 35 substituteInPlace Makefile \ 31 - --replace 'which' 'ls' \ 32 - --replace 'grim' "${grim}/bin/grim" \ 33 - --replace 'slurp' "${slurp}/bin/slurp" \ 34 - --replace 'convert' "${imagemagick}/bin/convert" \ 35 - --replace 'zenity' "${zenity}/bin/zenity" \ 36 - --replace 'wl-copy' "${wl-clipboard}/bin/wl-copy" 36 + --replace "which" "ls" \ 37 + --replace "grim" "${lib.getExe grim}" \ 38 + --replace "slurp" "${lib.getExe slurp}" \ 39 + --replace "zenity" "${lib.getExe zenity}" \ 40 + --replace "convert" "${lib.getExe' imagemagick "convert"}" \ 41 + --replace "wl-copy" "${lib.getExe' wl-clipboard "wl-copy"}" \ 42 + --replace "notify-send" "${lib.getExe' libnotify "notify-send"}" 37 43 ''; 38 44 39 - installFlags = [ 40 - "DESTDIR=${placeholder "out"}" 41 - ]; 45 + installFlags = [ "DESTDIR=${placeholder "out"}" ]; 42 46 43 47 postInstall = '' 44 48 wrapProgram $out/usr/bin/wl-color-picker \ ··· 49 53 imagemagick 50 54 zenity 51 55 wl-clipboard 56 + libnotify 52 57 ] 53 58 } 54 59 mkdir -p $out/bin 55 60 ln -s $out/usr/bin/wl-color-picker $out/bin/wl-color-picker 56 61 ''; 57 62 58 - meta = with lib; { 63 + meta = { 59 64 description = "Wayland color picker that also works on wlroots"; 60 65 homepage = "https://github.com/jgmdev/wl-color-picker"; 61 - license = licenses.mit; 62 - maintainers = with maintainers; [ onny ]; 63 - platforms = platforms.linux; 66 + license = lib.licenses.mit; 67 + maintainers = with lib.maintainers; [ onny ]; 68 + platforms = lib.platforms.linux; 64 69 mainProgram = "wl-color-picker"; 65 70 }; 66 - } 71 + })