mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 10:16:44 +01:00
44 lines
884 B
Nix
44 lines
884 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, libjpeg
|
|
, libpng
|
|
, ncurses
|
|
, autoreconfHook
|
|
, autoconf-archive
|
|
, pkg-config
|
|
, bash-completion
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "1.1.1";
|
|
pname = "jp2a";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Talinx";
|
|
repo = "jp2a";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-CUyJMVvzXniK5fdZBuWUK9GLSGJyL5Zig49ikGOGRTw=";
|
|
};
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
autoconf-archive
|
|
pkg-config
|
|
bash-completion
|
|
];
|
|
buildInputs = [ libjpeg libpng ncurses ];
|
|
|
|
installFlags = [ "bashcompdir=\${out}/share/bash-completion/completions" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://csl.name/jp2a/";
|
|
description = "A small utility that converts JPG images to ASCII";
|
|
license = licenses.gpl2Only;
|
|
maintainers = [ maintainers.FlorianFranzen ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|