2021-04-28 20:56:05 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, libjpeg
|
|
|
|
, libpng
|
|
|
|
, ncurses
|
|
|
|
, autoreconfHook
|
|
|
|
, autoconf-archive
|
|
|
|
, pkg-config
|
|
|
|
, bash-completion
|
|
|
|
}:
|
2015-10-23 02:47:24 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2024-01-08 05:59:28 +00:00
|
|
|
version = "1.2.0";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "jp2a";
|
2015-10-23 02:47:24 +00:00
|
|
|
|
2017-04-03 14:48:52 +00:00
|
|
|
src = fetchFromGitHub {
|
2021-04-28 20:56:05 +00:00
|
|
|
owner = "Talinx";
|
2017-04-03 14:48:52 +00:00
|
|
|
repo = "jp2a";
|
|
|
|
rev = "v${version}";
|
2024-01-08 05:59:28 +00:00
|
|
|
sha256 = "sha256-TyXEaHemKfCMyGwK6P2vVL9gPWRLbkaNP0g+/UYGSVc=";
|
2015-10-23 02:47:24 +00:00
|
|
|
};
|
|
|
|
|
2019-10-27 13:03:25 +00:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
2015-10-23 02:47:24 +00:00
|
|
|
|
2021-04-28 20:56:05 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
autoconf-archive
|
|
|
|
pkg-config
|
|
|
|
bash-completion
|
|
|
|
];
|
|
|
|
buildInputs = [ libjpeg libpng ncurses ];
|
|
|
|
|
|
|
|
installFlags = [ "bashcompdir=\${out}/share/bash-completion/completions" ];
|
2015-10-23 02:47:24 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2022-05-28 13:28:44 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://csl.name/jp2a/";
|
2016-02-27 17:24:00 +00:00
|
|
|
description = "A small utility that converts JPG images to ASCII";
|
2021-04-28 20:56:05 +00:00
|
|
|
license = licenses.gpl2Only;
|
|
|
|
maintainers = [ maintainers.FlorianFranzen ];
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = platforms.unix;
|
2024-02-11 02:19:15 +00:00
|
|
|
mainProgram = "jp2a";
|
2015-10-23 02:47:24 +00:00
|
|
|
};
|
|
|
|
}
|