mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-03 19:43:30 +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
958 B
Nix
38 lines
958 B
Nix
{ lib, stdenv, fetchurl, pkg-config
|
|
, gnutls
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ucommon";
|
|
version = "7.0.0";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnu/commoncpp/${pname}-${version}.tar.gz";
|
|
sha256 = "6ac9f76c2af010f97e916e4bae1cece341dc64ca28e3881ff4ddc3bc334060d7";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
# use C++14 Standard until error handling code gets updated upstream
|
|
CXXFLAGS = [ "-std=c++14" ];
|
|
|
|
# disable flaky networking test
|
|
postPatch = ''
|
|
substituteInPlace test/stream.cpp \
|
|
--replace 'ifndef UCOMMON_SYSRUNTIME' 'if 0'
|
|
'';
|
|
|
|
# ucommon.pc has link time depdendencies on -lusecure -lucommon -lgnutls
|
|
propagatedBuildInputs = [ gnutls ];
|
|
|
|
doCheck = true;
|
|
|
|
meta = {
|
|
description = "C++ library to facilitate using C++ design patterns";
|
|
homepage = "https://www.gnu.org/software/commoncpp/";
|
|
license = lib.licenses.lgpl3Plus;
|
|
maintainers = [ ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|