diff --git a/pkgs/development/libraries/umockdev/default.nix b/pkgs/development/libraries/umockdev/default.nix index 0f727a9be476..1ff71fa18114 100644 --- a/pkgs/development/libraries/umockdev/default.nix +++ b/pkgs/development/libraries/umockdev/default.nix @@ -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; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index bc3dde1d1d6e..4e08ed71e88e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };