Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arpa2common: 2.2.18 -> 2.6.2 #341416

Merged
merged 2 commits into from
Sep 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 37 additions & 24 deletions pkgs/development/libraries/arpa2common/default.nix
Original file line number Diff line number Diff line change
@@ -1,29 +1,39 @@
{ lib
, stdenv
, fetchFromGitLab
, cmake
{
lib,
stdenv,
fetchFromGitLab,
fetchpatch,
cmake,

, arpa2cm
, doxygen
, e2fsprogs
, graphviz
, lmdb
, openssl
, pkg-config
, ragel
arpa2cm,
doxygen,
e2fsprogs,
graphviz,
libsodium,
lmdb,
openssl,
pkg-config,
ragel,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "arpa2common";
version = "2.2.18";
version = "2.6.2";

src = fetchFromGitLab {
owner = "arpa2";
repo = pname;
rev = "v${version}";
hash = "sha256-UpAVyDXCe07ZwjD307t6G9f/Nny4QYXxGxft1KsiYYg=";
repo = "arpa2common";
rev = "v${finalAttrs.version}";
hash = "sha256-eWfWaO6URCK2FWQ+NYAoeCONkovgsVDPSRQVCGFnW3s=";
};

patches = [
(fetchpatch {
url = "https://gitlab.com/arpa2/arpa2common/-/commit/13ea82df60b87a5367db00a8c6f3502e8ecb7298.patch";
hash = "sha256-V9Dhr6PeArqXnuXmFuDjcirlGl7xovq7VQZsrbbMFSk=";
})
];

nativeBuildInputs = [
cmake
arpa2cm
Expand All @@ -34,17 +44,15 @@ stdenv.mkDerivation rec {

propagatedBuildInputs = [
e2fsprogs
libsodium
lmdb
openssl
ragel
];

# the project uses single argument `printf` throughout the program
hardeningDisable = [ "format" ];

meta = {
description =
"ARPA2 ID and ACL libraries and other core data structures for ARPA2";
changelog = "https://gitlab.com/arpa2/arpa2common/-/blob/v${finalAttrs.version}/CHANGES";
description = "ARPA2 ID and ACL libraries and other core data structures for ARPA2";
longDescription = ''
The ARPA2 Common Library package offers elementary services that can
benefit many software packages. They are designed to be easy to
Expand All @@ -53,8 +61,13 @@ stdenv.mkDerivation rec {
liberate users.
'';
homepage = "https://gitlab.com/arpa2/arpa2common";
license = with lib.licenses; [ bsd2 cc-by-sa-40 cc0 isc ];
license = with lib.licenses; [
bsd2
cc-by-sa-40
cc0
isc
];
maintainers = with lib.maintainers; [ fufexan ];
platforms = lib.platforms.linux;
};
}
})