2021-09-22 15:38:15 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, gdk-pixbuf
|
|
|
|
, gd
|
|
|
|
, pkg-config
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libsixel";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "1.10.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-09-22 15:38:15 +00:00
|
|
|
owner = "libsixel";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "libsixel";
|
|
|
|
rev = "v${version}";
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "1nny4295ipy4ajcxmmh04c796hcds0y7z7rv3qd17mj70y8j0r2d";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-09-22 15:38:15 +00:00
|
|
|
buildInputs = [
|
2021-12-06 16:07:01 +00:00
|
|
|
gdk-pixbuf gd
|
2021-09-22 15:38:15 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson ninja pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2021-09-22 15:38:15 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dtests=enabled"
|
|
|
|
# build system seems to be broken here, it still seems to handle jpeg
|
|
|
|
# through some other ways.
|
|
|
|
"-Djpeg=disabled"
|
|
|
|
"-Dpng=disabled"
|
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "SIXEL library for console graphics, and converter programs";
|
2021-09-22 15:38:15 +00:00
|
|
|
homepage = "https://github.com/libsixel/libsixel";
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2021-09-22 15:38:15 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|