summary refs log tree commit diff
path: root/pkgs/applications/misc/jp2a/default.nix
blob: 1a46b7c7afb28aaebcab6499ce770974ab03bf4a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ stdenv, fetchurl, libjpeg }:

stdenv.mkDerivation rec {
  version = "1.0.6";
  name = "jp2a-${version}";

  src = fetchurl {
    url = "mirror://sourceforge/jp2a/${name}.tar.gz";
    sha256 = "076frk3pa16s4r1b10zgy81vdlz0385zh3ykbnkaij25jn5aqc09";
  };

  makeFlags = "PREFIX=$(out)";

  buildInputs = [ libjpeg ];

  meta = with stdenv.lib; {
    homepage = https://csl.name/jp2a/;
    description = "A small utility that converts JPG images to ASCII.";
    license = licenses.gpl2;
  };
}