From 3bada19e24a2d7a2b697d8c67b64f014275b3318 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 8 Sep 2015 14:50:50 +0200 Subject: [PATCH] Add libgudev This has been split from systemd. --- .../libraries/libgudev/default.nix | 21 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 23 insertions(+) create mode 100644 pkgs/development/libraries/libgudev/default.nix diff --git a/pkgs/development/libraries/libgudev/default.nix b/pkgs/development/libraries/libgudev/default.nix new file mode 100644 index 000000000000..e751c6ee6c04 --- /dev/null +++ b/pkgs/development/libraries/libgudev/default.nix @@ -0,0 +1,21 @@ +{ lib, stdenv, fetchurl, pkgconfig, udev, glib }: + +let version = "230"; in + +stdenv.mkDerivation rec { + name = "libgudev-${version}"; + + src = fetchurl { + url = "https://download.gnome.org/sources/libgudev/${version}/${name}.tar.xz"; + sha256 = "a2e77faced0c66d7498403adefcc0707105e03db71a2b2abd620025b86347c18"; + }; + + buildInputs = [ pkgconfig udev glib ]; + + meta = { + homepage = https://wiki.gnome.org/Projects/libgudev; + maintainers = [ lib.maintainers.eelco ]; + platforms = lib.platforms.linux; + license = lib.licenses.lgpl2Plus; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a8fb4762af87..9f27d2f8884b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7076,6 +7076,8 @@ let libgsystem = callPackage ../development/libraries/libgsystem { }; + libgudev = callPackage ../development/libraries/libgudev { }; + libguestfs = callPackage ../development/libraries/libguestfs { inherit (perlPackages) libintlperl GetoptLong SysVirt; };