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