diff options
author | Jeremy Baxter <jtbx@disroot.org> | 2024-02-05 06:39:46 +1300 |
---|---|---|
committer | Jeremy Baxter <jtbx@disroot.org> | 2024-02-05 06:39:46 +1300 |
commit | c670f2d94d4e1de9ee35b9286d2a75cd3c3bcd62 (patch) | |
tree | 33a48ce36022b50c8e1db298777bca44f3673686 /pkgs/by-name/fa | |
parent | 0821541f6561361706ff0cce830acf24eba3bbc0 (diff) |
farge: use stdenvNoCC, fix style
Diffstat (limited to 'pkgs/by-name/fa')
-rw-r--r-- | pkgs/by-name/fa/farge/package.nix | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/pkgs/by-name/fa/farge/package.nix b/pkgs/by-name/fa/farge/package.nix index 1abffc64e0263..64ab2b084e4c1 100644 --- a/pkgs/by-name/fa/farge/package.nix +++ b/pkgs/by-name/fa/farge/package.nix @@ -1,5 +1,5 @@ { lib -, stdenv +, stdenvNoCC , fetchFromGitHub , makeBinaryWrapper , bc @@ -10,11 +10,12 @@ , slurp , wl-clipboard , xcolor + , waylandSupport ? true , x11Support ? true }: -stdenv.mkDerivation (finalAttrs: { +stdenvNoCC.mkDerivation (finalAttrs: { pname = "farge"; version = "1.0.9"; @@ -31,26 +32,28 @@ stdenv.mkDerivation (finalAttrs: { wrapperPath = lib.makeBinPath ([ bc feh - #Needed to fix convert: unable to read font `(null)' @ error/annotate.c/RenderFreetype issue - (imagemagick.override { ghostscriptSupport = true;}) - libnotify #Needed for the notify-send function call from the script - ] ++ lib.optionals waylandSupport [ grim slurp wl-clipboard ] - ++ lib.optionals x11Support [ xcolor ]); + libnotify # notify-send + # Needed to fix font rendering issue in imagemagick + (imagemagick.override { ghostscriptSupport = true; }) + ] ++ lib.optionals waylandSupport [ + grim + slurp + wl-clipboard + ] ++ lib.optional x11Support xcolor); installPhase = '' runHook preInstall - mkdir -p $out/bin - install -m755 farge $out/bin + install -Dm755 farge $out/bin/farge wrapProgram $out/bin/farge \ - --prefix PATH : "${finalAttrs.wrapperPath}" + --prefix PATH : "${finalAttrs.wrapperPath}" runHook postInstall ''; meta = with lib; { - description = "A tool that shows the color value of a given pixel on your screen"; + description = "View the color value of a specific pixel on your screen"; homepage = "https://github.com/sdushantha/farge"; license = licenses.mit; - platforms = platforms.all; + platforms = platforms.unix; maintainers = with maintainers; [ jtbx justinlime ]; mainProgram = "farge"; }; |