2018-12-02 12:41:15 +01:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, umockdev, gobject-introspection
|
2018-02-17 03:55:17 +01:00
|
|
|
, pkgconfig, glib, systemd, libgudev, vala }:
|
2017-03-17 00:02:53 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-17 03:55:17 +01:00
|
|
|
name = "umockdev-${version}";
|
2018-08-30 17:42:12 +02:00
|
|
|
version = "0.12";
|
2017-03-17 00:02:53 +01:00
|
|
|
|
2018-08-12 14:08:00 +02:00
|
|
|
outputs = [ "bin" "out" "dev" "doc" ];
|
|
|
|
|
2017-03-17 00:02:53 +01:00
|
|
|
src = fetchFromGitHub {
|
2018-05-29 11:54:18 +02:00
|
|
|
owner = "martinpitt";
|
|
|
|
repo = "umockdev";
|
|
|
|
rev = version;
|
2018-08-30 17:42:12 +02:00
|
|
|
sha256 = "1j7kkxpqs991w3qdlb779gzv38l1vpnlk3laabi2ndk83j1wl5k2";
|
2017-03-17 00:02:53 +01:00
|
|
|
};
|
|
|
|
|
2018-05-29 11:54:18 +02:00
|
|
|
# autoreconfHook complains if we try to build the documentation
|
|
|
|
postPatch = ''
|
|
|
|
echo 'EXTRA_DIST =' > docs/gtk-doc.make
|
|
|
|
'';
|
|
|
|
|
2018-02-17 03:55:17 +01:00
|
|
|
buildInputs = [ glib systemd libgudev ];
|
2017-03-17 00:02:53 +01:00
|
|
|
|
2018-12-02 12:41:15 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig vala gobject-introspection ];
|
2018-05-29 11:54:18 +02:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2017-03-17 00:02:53 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Mock hardware devices for creating unit tests";
|
|
|
|
license = licenses.lgpl2;
|
2018-05-29 11:54:18 +02:00
|
|
|
maintainers = with maintainers; [ ndowens ];
|
2018-03-10 00:48:33 +01:00
|
|
|
platforms = with platforms; linux;
|
2017-03-17 00:02:53 +01:00
|
|
|
};
|
|
|
|
}
|