2018-05-29 10:54:18 +01:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, libtool
|
2018-02-17 02:55:17 +00:00
|
|
|
, pkgconfig, glib, systemd, libgudev, vala }:
|
2017-03-16 23:02:53 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-17 02:55:17 +00:00
|
|
|
name = "umockdev-${version}";
|
2018-05-02 17:06:52 +01:00
|
|
|
version = "0.11.3";
|
2017-03-16 23:02:53 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2018-05-29 10:54:18 +01:00
|
|
|
owner = "martinpitt";
|
|
|
|
repo = "umockdev";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1z101yw7clxz39im3y435s3rj1gna3kp0fkj9wd62vxqvk68lhik";
|
2017-03-16 23:02:53 +00:00
|
|
|
};
|
|
|
|
|
2018-05-29 10:54:18 +01:00
|
|
|
# autoreconfHook complains if we try to build the documentation
|
|
|
|
postPatch = ''
|
|
|
|
echo 'EXTRA_DIST =' > docs/gtk-doc.make
|
|
|
|
'';
|
|
|
|
|
2018-02-17 02:55:17 +00:00
|
|
|
buildInputs = [ glib systemd libgudev ];
|
2017-03-16 23:02:53 +00:00
|
|
|
|
2018-05-29 10:54:18 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook libtool pkgconfig vala ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2017-03-16 23:02:53 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Mock hardware devices for creating unit tests";
|
|
|
|
license = licenses.lgpl2;
|
2018-05-29 10:54:18 +01:00
|
|
|
maintainers = with maintainers; [ ndowens ];
|
2018-03-09 23:48:33 +00:00
|
|
|
platforms = with platforms; linux;
|
2017-03-16 23:02:53 +00:00
|
|
|
};
|
|
|
|
}
|