mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-14 17:04:42 +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.
38 lines
894 B
Nix
38 lines
894 B
Nix
{ lib, stdenv, fetchurl
|
|
, zlibSupport ? true, zlib
|
|
, sslSupport ? true, openssl
|
|
, idnSupport ? true, libidn
|
|
}:
|
|
|
|
|
|
stdenv.mkDerivation rec{
|
|
pname = "gloox";
|
|
version = "1.0.28";
|
|
|
|
src = fetchurl {
|
|
url = "https://camaya.net/download/gloox-${version}.tar.bz2";
|
|
sha256 = "sha256-WRvRLCSe3gtQoe9rmawN6O+cG6T9Lhhvl6dAIVzFlmw=";
|
|
};
|
|
|
|
# needed since gcc12
|
|
postPatch = ''
|
|
sed '1i#include <ctime>' -i \
|
|
src/tests/{tag/tag_perf.cpp,zlib/zlib_perf.cpp} \
|
|
src/examples/*.cpp
|
|
'';
|
|
|
|
buildInputs = [ ]
|
|
++ lib.optional zlibSupport zlib
|
|
++ lib.optional sslSupport openssl
|
|
++ lib.optional idnSupport libidn;
|
|
|
|
meta = with lib; {
|
|
description = "Portable high-level Jabber/XMPP library for C++";
|
|
mainProgram = "gloox-config";
|
|
homepage = "http://camaya.net/gloox";
|
|
license = licenses.gpl3;
|
|
maintainers = [ ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|