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 {
|
2021-12-19 01:06:50 +00:00
|
|
|
version = "1.1.1";
|
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}";
|
2021-12-19 01:06:50 +00:00
|
|
|
sha256 = "sha256-CUyJMVvzXniK5fdZBuWUK9GLSGJyL5Zig49ikGOGRTw=";
|
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/";
|
|
|
|
description = "A 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;
|
|
|
|
};
|
|
|
|
}
|