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 }:
stdenv.mkDerivation rec {
@ -6,21 +6,27 @@ stdenv.mkDerivation rec {
version = "0.11.3";
src = fetchFromGitHub {
owner = "martinpitt";
repo = "umockdev";
rev = version;
sha256 ="1z101yw7clxz39im3y435s3rj1gna3kp0fkj9wd62vxqvk68lhik";
owner = "martinpitt";
repo = "umockdev";
rev = version;
sha256 = "1z101yw7clxz39im3y435s3rj1gna3kp0fkj9wd62vxqvk68lhik";
};
buildInputs = [ glib systemd libgudev ];
nativeBuildInputs = [ automake autoconf libtool gtk-doc pkgconfig vala ];
# autoreconfHook complains if we try to build the documentation
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; {
description = "Mock hardware devices for creating unit tests";
license = licenses.lgpl2;
maintainers = [ maintainers.ndowens ];
maintainers = with maintainers; [ ndowens ];
platforms = with platforms; linux;
};
}

View file

@ -11796,7 +11796,9 @@ with pkgs;
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 { };