2018-02-25 03:23:58 +01:00
|
|
|
{ stdenv, fetchFromGitHub, automake, autoconf, libtool, gtk-doc
|
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-03-10 00:20:31 +01:00
|
|
|
version = "0.11.1";
|
2017-03-17 00:02:53 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "martinpitt";
|
|
|
|
repo = "umockdev";
|
|
|
|
rev = version;
|
2018-03-10 00:20:31 +01:00
|
|
|
sha256 ="0cmswac8m7zfvk6cb8k5iisqr7arnn1yhcmasri072yz0pmr6dr0";
|
2017-03-17 00:02:53 +01:00
|
|
|
};
|
|
|
|
|
2018-02-17 03:55:17 +01:00
|
|
|
buildInputs = [ glib systemd libgudev ];
|
2018-02-25 03:23:58 +01:00
|
|
|
nativeBuildInputs = [ automake autoconf libtool gtk-doc pkgconfig vala ];
|
2017-03-17 00:02:53 +01:00
|
|
|
|
2018-02-17 03:55:17 +01:00
|
|
|
preConfigure = "NOCONFIGURE=1 ./autogen.sh";
|
2017-03-17 00:02:53 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Mock hardware devices for creating unit tests";
|
|
|
|
license = licenses.lgpl2;
|
|
|
|
maintainers = [ maintainers.ndowens ];
|
2018-03-10 00:48:33 +01:00
|
|
|
platforms = with platforms; linux;
|
2017-03-17 00:02:53 +01:00
|
|
|
};
|
|
|
|
}
|