2021-05-03 20:48:10 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, libjpeg
|
|
|
|
, libpng
|
|
|
|
, ncurses
|
|
|
|
, autoreconfHook
|
|
|
|
, autoconf-archive
|
|
|
|
, pkg-config
|
|
|
|
, bash-completion
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "1.2.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "jp2a";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-05-03 20:48:10 +00:00
|
|
|
owner = "Talinx";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "jp2a";
|
|
|
|
rev = "v${version}";
|
2024-01-13 08:15:51 +00:00
|
|
|
sha256 = "sha256-TyXEaHemKfCMyGwK6P2vVL9gPWRLbkaNP0g+/UYGSVc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
autoconf-archive
|
|
|
|
pkg-config
|
|
|
|
bash-completion
|
|
|
|
];
|
|
|
|
buildInputs = [ libjpeg libpng ncurses ];
|
|
|
|
|
|
|
|
installFlags = [ "bashcompdir=\${out}/share/bash-completion/completions" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://csl.name/jp2a/";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Small utility that converts JPG images to ASCII";
|
2021-05-03 20:48:10 +00:00
|
|
|
license = licenses.gpl2Only;
|
|
|
|
maintainers = [ maintainers.FlorianFranzen ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "jp2a";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|