mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-02 19:14:14 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
44 lines
1.2 KiB
Nix
44 lines
1.2 KiB
Nix
{ stdenv, lib, fetchurl, meson, ninja, pkg-config
|
|
, gtk-doc, docbook-xsl-nons
|
|
, glib, ncurses, libxml2
|
|
, buildDocs ? true
|
|
, mesonEmulatorHook
|
|
}:
|
|
stdenv.mkDerivation rec {
|
|
pname = "libgnt";
|
|
version = "2.14.3";
|
|
|
|
outputs = [ "out" "dev" ] ++ lib.optional buildDocs "devdoc";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/pidgin/${pname}-${version}.tar.xz";
|
|
hash = "sha256-V/VFf3KZnQuxoTmjfydG7BtaAsCU8nEKM52LzqQjYSM=";
|
|
};
|
|
|
|
nativeBuildInputs = [ glib meson ninja pkg-config ]
|
|
++ lib.optionals buildDocs [ gtk-doc docbook-xsl-nons ]
|
|
++ lib.optionals (buildDocs && !stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
|
|
mesonEmulatorHook
|
|
];
|
|
|
|
buildInputs = [ glib ncurses libxml2 ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace meson.build --replace \
|
|
"ncurses_sys_prefix = '/usr'" \
|
|
"ncurses_sys_prefix = '${lib.getDev ncurses}'"
|
|
'';
|
|
mesonFlags = [
|
|
(lib.mesonBool "doc" buildDocs)
|
|
(lib.mesonBool "python2" false)
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "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 ];
|
|
};
|
|
}
|