2021-09-18 18:47:35 +02:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, libbsd
|
|
|
|
, gdk-pixbuf
|
|
|
|
, gd
|
|
|
|
, libjpeg
|
|
|
|
, pkg-config
|
|
|
|
, fetchpatch
|
|
|
|
}:
|
2016-06-11 01:56:58 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "libsixel";
|
2021-09-18 18:47:35 +02:00
|
|
|
version = "1.10.1";
|
2016-06-11 01:56:58 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-09-18 18:47:35 +02:00
|
|
|
owner = "libsixel";
|
2016-06-11 01:56:58 +02:00
|
|
|
repo = "libsixel";
|
2017-02-08 02:11:13 +01:00
|
|
|
rev = "v${version}";
|
2021-09-18 18:47:35 +02:00
|
|
|
sha256 = "sha256-ACypJTFjXSzBjo4hQzUiJOqnaRaZnYX+/NublN9sbBo=";
|
2016-06-11 01:56:58 +02:00
|
|
|
};
|
|
|
|
|
2021-09-18 18:47:35 +02:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/libsixel/libsixel/commit/4d3e53ee007f3b71f638875f9fabbba658b2ca8a.patch";
|
|
|
|
sha256 = "sha256-iDfsTyUczjtzV3pt1ZErbhVO2rMm2ZYKWSBl+ru+5HA=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libbsd gdk-pixbuf gd
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson ninja pkg-config
|
2020-01-16 02:52:21 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2021-09-18 18:47:35 +02: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-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2016-06-11 01:56:58 +02:00
|
|
|
description = "The SIXEL library for console graphics, and converter programs";
|
2021-09-18 18:47:35 +02:00
|
|
|
homepage = "https://github.com/libsixel/libsixel";
|
2016-06-11 01:56:58 +02:00
|
|
|
maintainers = with maintainers; [ vrthra ];
|
|
|
|
license = licenses.mit;
|
2021-09-18 18:47:35 +02:00
|
|
|
platforms = platforms.unix;
|
2016-06-11 01:56:58 +02:00
|
|
|
};
|
|
|
|
}
|