2021-03-24 04:42:11 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, docbook-xsl-nons
|
2020-12-22 22:18:50 +00:00
|
|
|
, fetchurl
|
|
|
|
, glib
|
|
|
|
, gobject-introspection
|
|
|
|
, gtk-doc
|
|
|
|
, libgudev
|
2021-10-01 18:27:28 +00:00
|
|
|
, libpcap
|
2020-12-22 22:18:50 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, python3
|
|
|
|
, systemd
|
|
|
|
, usbutils
|
|
|
|
, vala
|
|
|
|
, which
|
|
|
|
}:
|
2017-03-16 23:02:53 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "umockdev";
|
2022-01-22 05:40:05 +00:00
|
|
|
version = "0.17.6";
|
2017-03-16 23:02:53 +00:00
|
|
|
|
2021-03-24 04:42:11 +00:00
|
|
|
outputs = [ "bin" "out" "dev" "devdoc" ];
|
2018-08-12 12:08:00 +00:00
|
|
|
|
2019-08-18 17:33:15 +00:00
|
|
|
src = fetchurl {
|
2019-08-24 06:19:05 +00:00
|
|
|
url = "https://github.com/martinpitt/umockdev/releases/download/${version}/${pname}-${version}.tar.xz";
|
2022-01-22 05:40:05 +00:00
|
|
|
sha256 = "sha256-X60zN3orHU8lOfRVCfbHTdrleKxB7ILCIGvXSZLdoSk=";
|
2017-03-16 23:02:53 +00:00
|
|
|
};
|
|
|
|
|
2020-12-22 22:18:50 +00:00
|
|
|
nativeBuildInputs = [
|
2021-03-24 04:42:11 +00:00
|
|
|
docbook-xsl-nons
|
2020-12-22 22:18:50 +00:00
|
|
|
gobject-introspection
|
|
|
|
gtk-doc
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
vala
|
|
|
|
];
|
2019-08-18 17:33:15 +00:00
|
|
|
|
2021-03-24 04:42:11 +00:00
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
systemd
|
|
|
|
libgudev
|
2021-10-01 18:27:28 +00:00
|
|
|
libpcap
|
2021-03-24 04:42:11 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
python3
|
|
|
|
which
|
|
|
|
usbutils
|
|
|
|
];
|
2018-05-29 09:54:18 +00:00
|
|
|
|
2021-03-24 04:42:11 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dgtk_doc=true"
|
|
|
|
];
|
2017-03-16 23:02:53 +00:00
|
|
|
|
2021-01-03 13:04:53 +00:00
|
|
|
doCheck = true;
|
2019-08-18 17:33:15 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2017-03-16 23:02:53 +00:00
|
|
|
description = "Mock hardware devices for creating unit tests";
|
2021-03-24 04:42:11 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
2020-12-22 22:18:50 +00:00
|
|
|
maintainers = with maintainers; [ flokli ];
|
2018-03-09 23:48:33 +00:00
|
|
|
platforms = with platforms; linux;
|
2017-03-16 23:02:53 +00:00
|
|
|
};
|
|
|
|
}
|