summary refs log blame commit diff
path: root/pkgs/applications/misc/jp2a/default.nix
blob: 1aece5eb4e2626e7d24f83fff172626d93c3e1c0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                                                     

                         
                    
                 
 




                                                                    

    
                                  
 
                                         



                                      
                                                                      
                            
                               

    
{ stdenv, fetchFromGitHub, libjpeg, autoreconfHook }:

stdenv.mkDerivation rec {
  version = "1.0.7";
  pname = "jp2a";

  src = fetchFromGitHub {
    owner = "cslarsen";
    repo = "jp2a";
    rev = "v${version}";
    sha256 = "12a1z9ba2j16y67f41y8ax5sgv1wdjd71pg7circdxkj263n78ql";
  };

  makeFlags = [ "PREFIX=$(out)" ];

  nativeBuildInputs = [ autoreconfHook ];
  buildInputs = [ libjpeg ];

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