From 4e8dfe71d3830ff79619b0e9096dc7202de1190d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Thu, 4 Jul 2013 21:19:25 +0200 Subject: [PATCH] liburcu: new package liburcu is a userspace RCU (read-copy-update) library that is used by LTTng - Linux Trace Toolkit (next generation). --- .../development/libraries/liburcu/default.nix | 20 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 22 insertions(+) create mode 100644 pkgs/development/libraries/liburcu/default.nix diff --git a/pkgs/development/libraries/liburcu/default.nix b/pkgs/development/libraries/liburcu/default.nix new file mode 100644 index 00000000000..74c6b8fa615 --- /dev/null +++ b/pkgs/development/libraries/liburcu/default.nix @@ -0,0 +1,20 @@ +{ stdenv, fetchurl }: + +stdenv.mkDerivation rec { + version = "0.7.7"; + name = "liburcu-${version}"; + + src = fetchurl { + url = "http://lttng.org/files/urcu/userspace-rcu-${version}.tar.bz2"; + sha256 = "1yxxnhrsy6sv6bmp7j96jjynnqns01zjgj94mk70jz54zvcagf4a"; + }; + + meta = with stdenv.lib; { + description = "Userspace RCU (read-copy-update) library"; + homepage = http://lttng.org/urcu; + license = licenses.lgpl21Plus; + platforms = platforms.linux; + maintainers = [ maintainers.bjornfor ]; + }; + +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 53c3ba9ec73..bc9e0ccbc98 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4860,6 +4860,8 @@ let libunique = callPackage ../development/libraries/libunique/default.nix { }; + liburcu = callPackage ../development/libraries/liburcu { }; + libusb = callPackage ../development/libraries/libusb { stdenv = if stdenv.isDarwin then overrideGCC stdenv gccApple