nixpkgs/pkgs/applications/misc/jp2a/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

46 lines
938 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, libjpeg
, libpng
, ncurses
, autoreconfHook
, autoconf-archive
, pkg-config
, bash-completion
}:
stdenv.mkDerivation rec {
version = "1.2.0";
pname = "jp2a";
src = fetchFromGitHub {
owner = "Talinx";
repo = "jp2a";
rev = "v${version}";
sha256 = "sha256-TyXEaHemKfCMyGwK6P2vVL9gPWRLbkaNP0g+/UYGSVc=";
};
makeFlags = [ "PREFIX=$(out)" ];
nativeBuildInputs = [
autoreconfHook
autoconf-archive
pkg-config
bash-completion
];
buildInputs = [ libjpeg libpng ncurses ];
installFlags = [ "bashcompdir=\${out}/share/bash-completion/completions" ];
meta = with lib; {
broken = stdenv.isDarwin;
homepage = "https://csl.name/jp2a/";
description = "Small utility that converts JPG images to ASCII";
license = licenses.gpl2Only;
maintainers = [ maintainers.FlorianFranzen ];
platforms = platforms.unix;
mainProgram = "jp2a";
};
}