umockdev: fix build

This commit is contained in:
Peter Hoeg 2018-05-29 17:54:18 +08:00
parent 5418dfcd5c
commit 2af5b6eadd
2 changed files with 18 additions and 10 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, automake, autoconf, libtool, gtk-doc { stdenv, fetchFromGitHub, autoreconfHook, libtool
, pkgconfig, glib, systemd, libgudev, vala }: , pkgconfig, glib, systemd, libgudev, vala }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -6,21 +6,27 @@ stdenv.mkDerivation rec {
version = "0.11.3"; version = "0.11.3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "martinpitt"; owner = "martinpitt";
repo = "umockdev"; repo = "umockdev";
rev = version; rev = version;
sha256 ="1z101yw7clxz39im3y435s3rj1gna3kp0fkj9wd62vxqvk68lhik"; sha256 = "1z101yw7clxz39im3y435s3rj1gna3kp0fkj9wd62vxqvk68lhik";
}; };
buildInputs = [ glib systemd libgudev ]; # autoreconfHook complains if we try to build the documentation
nativeBuildInputs = [ automake autoconf libtool gtk-doc pkgconfig vala ]; postPatch = ''
echo 'EXTRA_DIST =' > docs/gtk-doc.make
'';
preConfigure = "NOCONFIGURE=1 ./autogen.sh"; buildInputs = [ glib systemd libgudev ];
nativeBuildInputs = [ autoreconfHook libtool pkgconfig vala ];
enableParallelBuilding = true;
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Mock hardware devices for creating unit tests"; description = "Mock hardware devices for creating unit tests";
license = licenses.lgpl2; license = licenses.lgpl2;
maintainers = [ maintainers.ndowens ]; maintainers = with maintainers; [ ndowens ];
platforms = with platforms; linux; platforms = with platforms; linux;
}; };
} }

View File

@ -11796,7 +11796,9 @@ with pkgs;
uid_wrapper = callPackage ../development/libraries/uid_wrapper { }; uid_wrapper = callPackage ../development/libraries/uid_wrapper { };
umockdev = callPackage ../development/libraries/umockdev { }; umockdev = callPackage ../development/libraries/umockdev {
vala = vala_0_40;
};
unibilium = callPackage ../development/libraries/unibilium { }; unibilium = callPackage ../development/libraries/unibilium { };