nixpkgs/pkgs/applications/misc/jp2a/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
914 B
Nix
Raw Normal View History

2021-04-28 20:56:05 +00:00
{ lib
, stdenv
, fetchFromGitHub
, libjpeg
, libpng
, ncurses
, autoreconfHook
, autoconf-archive
, pkg-config
, bash-completion
}:
stdenv.mkDerivation rec {
2021-12-07 07:16:05 +00:00
version = "1.1.1";
pname = "jp2a";
2017-04-03 14:48:52 +00:00
src = fetchFromGitHub {
2021-04-28 20:56:05 +00:00
owner = "Talinx";
2017-04-03 14:48:52 +00:00
repo = "jp2a";
rev = "v${version}";
2021-12-07 07:16:05 +00:00
sha256 = "sha256-CUyJMVvzXniK5fdZBuWUK9GLSGJyL5Zig49ikGOGRTw=";
};
makeFlags = [ "PREFIX=$(out)" ];
2021-04-28 20:56:05 +00:00
nativeBuildInputs = [
autoreconfHook
autoconf-archive
pkg-config
bash-completion
];
buildInputs = [ libjpeg libpng ncurses ];
installFlags = [ "bashcompdir=\${out}/share/bash-completion/completions" ];
meta = with lib; {
broken = stdenv.isDarwin;
homepage = "https://csl.name/jp2a/";
description = "A small utility that converts JPG images to ASCII";
2021-04-28 20:56:05 +00:00
license = licenses.gpl2Only;
maintainers = [ maintainers.FlorianFranzen ];
platforms = platforms.unix;
};
}