Files
nixpkgs/pkgs/by-name/jp/jp2a/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

56 lines
1.0 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
libjpeg,
libpng,
ncurses,
autoreconfHook,
autoconf-archive,
pkg-config,
bash-completion,
libwebp,
libexif,
}:
stdenv.mkDerivation (finalAttrs: {
version = "1.3.2";
pname = "jp2a";
src = fetchFromGitHub {
owner = "Talinx";
repo = "jp2a";
tag = "v${finalAttrs.version}";
hash = "sha256-GcwwzVgF7BK2N8TL8z/7R7Ry1e9pmGiXUrOAQQmPIBo=";
};
makeFlags = [ "PREFIX=$(out)" ];
nativeBuildInputs = [
autoreconfHook
autoconf-archive
pkg-config
bash-completion
];
buildInputs = [
libjpeg
libpng
ncurses
libwebp
libexif
];
installFlags = [ "bashcompdir=\${out}/share/bash-completion/completions" ];
meta = {
broken = stdenv.hostPlatform.isDarwin;
homepage = "https://csl.name/jp2a/";
description = "Small utility that converts JPG images to ASCII";
license = lib.licenses.gpl2Only;
maintainers = [ lib.maintainers.FlorianFranzen ];
platforms = lib.platforms.unix;
mainProgram = "jp2a";
};
})