2025-05-18 04:22:11 +05:30

36 lines
760 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
gd,
}:
stdenv.mkDerivation rec {
pname = "libansilove";
version = "1.4.2";
src = fetchFromGitHub {
owner = "ansilove";
repo = "libansilove";
tag = version;
hash = "sha256-kbQ7tbQbJ8zYhdbfiVZY26woyR4NNzqjCJ/5nrunlWs=";
};
nativeBuildInputs = [
cmake
];
buildInputs = [ gd ];
meta = {
description = "Library for converting ANSI, ASCII, and other formats to PNG";
homepage = "https://github.com/ansilove/libansilove";
changelog = "https://github.com/ansilove/libansilove/blob/${src.rev}/ChangeLog";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ jethair ];
mainProgram = "libansilove";
platforms = lib.platforms.unix;
};
}