mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
61 lines
1.3 KiB
Nix
61 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
perl,
|
|
gitUpdater,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
version = "0.15.7";
|
|
pname = "liburcu";
|
|
|
|
src = fetchurl {
|
|
url = "https://lttng.org/files/urcu/userspace-rcu-${finalAttrs.version}.tar.bz2";
|
|
hash = "sha256-JVa4OtwPmzrIAk5hPhfQFNBMTEkRBgTOVfyxTq4y7dM=";
|
|
};
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
"doc"
|
|
];
|
|
|
|
nativeCheckInputs = [ perl ];
|
|
|
|
strictDeps = true;
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
preCheck = "patchShebangs tests/unit";
|
|
doCheck = true;
|
|
|
|
passthru.updateScript = gitUpdater {
|
|
url = "https://git.lttng.org/userspace-rcu.git";
|
|
rev-prefix = "v";
|
|
};
|
|
|
|
__structuredAttrs = true;
|
|
|
|
meta = {
|
|
description = "Userspace RCU (read-copy-update) library";
|
|
homepage = "https://lttng.org/urcu";
|
|
changelog = "https://github.com/urcu/userspace-rcu/raw/v${finalAttrs.version}/ChangeLog";
|
|
license = lib.licenses.lgpl21Plus;
|
|
# https://git.liburcu.org/?p=userspace-rcu.git;a=blob;f=include/urcu/arch.h
|
|
platforms = lib.intersectLists lib.platforms.unix (
|
|
lib.platforms.x86
|
|
++ lib.platforms.power
|
|
++ lib.platforms.s390
|
|
++ lib.platforms.arm
|
|
++ lib.platforms.aarch64
|
|
++ lib.platforms.mips
|
|
++ lib.platforms.m68k
|
|
++ lib.platforms.riscv
|
|
++ lib.platforms.loongarch64
|
|
);
|
|
maintainers = [ lib.maintainers.bjornfor ];
|
|
};
|
|
|
|
})
|