Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, stdenv 3, fetchFromGitHub 4, meson 5, ninja 6, gdk-pixbuf 7, gd 8, libjpeg 9, pkg-config 10}: 11stdenv.mkDerivation rec { 12 pname = "libsixel"; 13 version = "1.10.3"; 14 15 src = fetchFromGitHub { 16 owner = "libsixel"; 17 repo = "libsixel"; 18 rev = "v${version}"; 19 sha256 = "1nny4295ipy4ajcxmmh04c796hcds0y7z7rv3qd17mj70y8j0r2d"; 20 }; 21 22 buildInputs = [ 23 gdk-pixbuf gd 24 ]; 25 26 nativeBuildInputs = [ 27 meson ninja pkg-config 28 ]; 29 30 doCheck = true; 31 32 mesonFlags = [ 33 "-Dtests=enabled" 34 # build system seems to be broken here, it still seems to handle jpeg 35 # through some other ways. 36 "-Djpeg=disabled" 37 "-Dpng=disabled" 38 ]; 39 40 meta = with lib; { 41 description = "The SIXEL library for console graphics, and converter programs"; 42 homepage = "https://github.com/libsixel/libsixel"; 43 maintainers = with maintainers; [ vrthra ]; 44 license = licenses.mit; 45 platforms = platforms.unix; 46 }; 47}