base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / li / libsixel / package.nix
blob81f13acb340a6b7064fd8f700aa6bc704d8821c2
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , meson
5 , ninja
6 , gdk-pixbuf
7 , gd
8 , pkg-config
9 }:
10 stdenv.mkDerivation rec {
11   pname = "libsixel";
12   version = "1.10.3";
14   src = fetchFromGitHub {
15     owner = "libsixel";
16     repo = "libsixel";
17     rev = "v${version}";
18     sha256 = "1nny4295ipy4ajcxmmh04c796hcds0y7z7rv3qd17mj70y8j0r2d";
19   };
21   buildInputs = [
22     gdk-pixbuf gd
23   ];
25   nativeBuildInputs = [
26     meson ninja pkg-config
27   ];
29   doCheck = true;
31   mesonFlags = [
32     "-Dtests=enabled"
33     # build system seems to be broken here, it still seems to handle jpeg
34     # through some other ways.
35     "-Djpeg=disabled"
36     "-Dpng=disabled"
37   ];
39   meta = with lib; {
40     description = "SIXEL library for console graphics, and converter programs";
41     homepage = "https://github.com/libsixel/libsixel";
42     maintainers = [ ];
43     license = licenses.mit;
44     platforms = platforms.unix;
45   };