diff options
author | Vladimír Čunát <v@cunat.cz> | 2020-11-01 11:42:34 +0100 |
---|---|---|
committer | Mykola Orliuk <virkony@gmail.com> | 2021-07-16 08:25:43 +0200 |
commit | 7997c258db3f904c368890b0a40119cf7699a990 (patch) | |
tree | 4ef0e101cf65f36b3d1ecf7dfe252035171011bb /pkgs/development/libraries/libgnt | |
parent | 8b0b6e43c6162e80eef5d5874d1a4c48402cc1c9 (diff) | |
download | nixpkgs-7997c258db3f904c368890b0a40119cf7699a990.tar nixpkgs-7997c258db3f904c368890b0a40119cf7699a990.tar.gz nixpkgs-7997c258db3f904c368890b0a40119cf7699a990.tar.bz2 nixpkgs-7997c258db3f904c368890b0a40119cf7699a990.tar.lz nixpkgs-7997c258db3f904c368890b0a40119cf7699a990.tar.xz nixpkgs-7997c258db3f904c368890b0a40119cf7699a990.tar.zst nixpkgs-7997c258db3f904c368890b0a40119cf7699a990.zip |
pidgin: bring back text-mode UI
It disappeared in the parent commit.
Diffstat (limited to 'pkgs/development/libraries/libgnt')
-rw-r--r-- | pkgs/development/libraries/libgnt/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libgnt/default.nix b/pkgs/development/libraries/libgnt/default.nix new file mode 100644 index 00000000000..33ce7fbaa11 --- /dev/null +++ b/pkgs/development/libraries/libgnt/default.nix @@ -0,0 +1,37 @@ +{ stdenv, lib, fetchurl, meson, ninja, pkg-config +, gtk-doc, docbook-xsl-nons +, glib, ncurses, libxml2 +, buildDocs ? true +}: +stdenv.mkDerivation rec { + pname = "libgnt"; + version = "2.14.1"; + + outputs = [ "out" "dev" ] ++ lib.optional buildDocs "devdoc"; + + src = fetchurl { + url = "mirror://sourceforge/pidgin/${pname}-${version}.tar.xz"; + sha256 = "1n2bxg0ignn53c08cp69pj4sdg53kwlqn23rincyjmpr327fdhsy"; + }; + + nativeBuildInputs = [ meson ninja pkg-config ] + ++ lib.optionals buildDocs [ gtk-doc docbook-xsl-nons ]; + + buildInputs = [ glib ncurses libxml2 ]; + + postPatch = '' + substituteInPlace meson.build --replace \ + "ncurses_sys_prefix = '/usr'" \ + "ncurses_sys_prefix = '${lib.getDev ncurses}'" + '' + lib.optionalString (!buildDocs) '' + sed "/^subdir('doc')$/d" -i meson.build + ''; + + meta = with lib; { + description = "An ncurses toolkit for creating text-mode graphical user interfaces"; + homepage = "https://keep.imfreedom.org/libgnt/libgnt/"; + license = licenses.gpl2Plus; + platforms = platforms.unix; + maintainers = with lib.maintainers; [ ony ]; + }; +} |