Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

libgnt: 2.14.1 -> 2.14.3

[changelog](https://keep.imfreedom.org/libgnt/libgnt/file/v2.14.3/ChangeLog)

Colin 6cfaec09 754d2819

+12 -6
+12 -6
pkgs/development/libraries/libgnt/default.nix
··· 2 2 , gtk-doc, docbook-xsl-nons 3 3 , glib, ncurses, libxml2 4 4 , buildDocs ? true 5 + , mesonEmulatorHook 5 6 }: 6 7 stdenv.mkDerivation rec { 7 8 pname = "libgnt"; 8 - version = "2.14.1"; 9 + version = "2.14.3"; 9 10 10 11 outputs = [ "out" "dev" ] ++ lib.optional buildDocs "devdoc"; 11 12 12 13 src = fetchurl { 13 14 url = "mirror://sourceforge/pidgin/${pname}-${version}.tar.xz"; 14 - sha256 = "1n2bxg0ignn53c08cp69pj4sdg53kwlqn23rincyjmpr327fdhsy"; 15 + hash = "sha256-V/VFf3KZnQuxoTmjfydG7BtaAsCU8nEKM52LzqQjYSM="; 15 16 }; 16 17 17 - nativeBuildInputs = [ meson ninja pkg-config ] 18 - ++ lib.optionals buildDocs [ gtk-doc docbook-xsl-nons ]; 18 + nativeBuildInputs = [ glib meson ninja pkg-config ] 19 + ++ lib.optionals buildDocs [ gtk-doc docbook-xsl-nons ] 20 + ++ lib.optionals (buildDocs && !stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ 21 + mesonEmulatorHook 22 + ]; 19 23 20 24 buildInputs = [ glib ncurses libxml2 ]; 21 25 ··· 23 27 substituteInPlace meson.build --replace \ 24 28 "ncurses_sys_prefix = '/usr'" \ 25 29 "ncurses_sys_prefix = '${lib.getDev ncurses}'" 26 - '' + lib.optionalString (!buildDocs) '' 27 - sed "/^subdir('doc')$/d" -i meson.build 28 30 ''; 31 + mesonFlags = [ 32 + (lib.mesonBool "doc" buildDocs) 33 + (lib.mesonBool "python2" false) 34 + ]; 29 35 30 36 meta = with lib; { 31 37 description = "An ncurses toolkit for creating text-mode graphical user interfaces";