2021-09-18 16:47:35 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, gdk-pixbuf
|
|
|
|
, gd
|
|
|
|
, libjpeg
|
|
|
|
, pkg-config
|
|
|
|
}:
|
2016-06-10 23:56:58 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "libsixel";
|
2021-10-05 22:23:35 +00:00
|
|
|
version = "1.10.3";
|
2016-06-10 23:56:58 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-09-18 16:47:35 +00:00
|
|
|
owner = "libsixel";
|
2016-06-10 23:56:58 +00:00
|
|
|
repo = "libsixel";
|
2017-02-08 01:11:13 +00:00
|
|
|
rev = "v${version}";
|
2021-10-05 22:23:35 +00:00
|
|
|
sha256 = "1nny4295ipy4ajcxmmh04c796hcds0y7z7rv3qd17mj70y8j0r2d";
|
2016-06-10 23:56:58 +00:00
|
|
|
};
|
|
|
|
|
2021-09-18 16:47:35 +00:00
|
|
|
buildInputs = [
|
2021-10-05 22:23:35 +00:00
|
|
|
gdk-pixbuf gd
|
2021-09-18 16:47:35 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson ninja pkg-config
|
2020-01-16 01:52:21 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2021-09-18 16:47:35 +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-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2016-06-10 23:56:58 +00:00
|
|
|
description = "The SIXEL library for console graphics, and converter programs";
|
2021-09-18 16:47:35 +00:00
|
|
|
homepage = "https://github.com/libsixel/libsixel";
|
2016-06-10 23:56:58 +00:00
|
|
|
maintainers = with maintainers; [ vrthra ];
|
|
|
|
license = licenses.mit;
|
2021-09-18 16:47:35 +00:00
|
|
|
platforms = platforms.unix;
|
2016-06-10 23:56:58 +00:00
|
|
|
};
|
|
|
|
}
|