2017-04-03 16:48:52 +02:00
|
|
|
{ stdenv, fetchFromGitHub, libjpeg, autoreconfHook }:
|
2015-10-23 04:47:24 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-04-03 16:48:52 +02:00
|
|
|
version = "1.0.7";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "jp2a";
|
2015-10-23 04:47:24 +02:00
|
|
|
|
2017-04-03 16:48:52 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cslarsen";
|
|
|
|
repo = "jp2a";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "12a1z9ba2j16y67f41y8ax5sgv1wdjd71pg7circdxkj263n78ql";
|
2015-10-23 04:47:24 +02:00
|
|
|
};
|
|
|
|
|
2019-10-27 14:03:25 +01:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
2015-10-23 04:47:24 +02:00
|
|
|
|
2017-04-03 16:48:52 +02:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2015-10-23 04:47:24 +02:00
|
|
|
buildInputs = [ libjpeg ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://csl.name/jp2a/";
|
2016-02-27 18:24:00 +01:00
|
|
|
description = "A small utility that converts JPG images to ASCII";
|
2015-10-23 04:47:24 +02:00
|
|
|
license = licenses.gpl2;
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = platforms.unix;
|
2015-10-23 04:47:24 +02:00
|
|
|
};
|
|
|
|
}
|