2021-05-20 23:08:51 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, docbook-xsl-nons
|
2020-12-27 14:24:52 +00:00
|
|
|
, fetchurl
|
|
|
|
, glib
|
|
|
|
, gobject-introspection
|
|
|
|
, gtk-doc
|
|
|
|
, libgudev
|
2021-10-14 00:43:12 +00:00
|
|
|
, libpcap
|
2020-12-27 14:24:52 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, python3
|
|
|
|
, systemd
|
|
|
|
, usbutils
|
|
|
|
, vala
|
|
|
|
, which
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "umockdev";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "0.17.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
outputs = [ "bin" "out" "dev" "devdoc" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/martinpitt/umockdev/releases/download/${version}/${pname}-${version}.tar.xz";
|
2022-04-27 09:35:20 +00:00
|
|
|
sha256 = "sha256-s3zeWJxw5ohUtsv4NZGKcdP8khEYzIXycbBrAzdnVoU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-12-27 14:24:52 +00:00
|
|
|
nativeBuildInputs = [
|
2021-05-20 23:08:51 +00:00
|
|
|
docbook-xsl-nons
|
2020-12-27 14:24:52 +00:00
|
|
|
gobject-introspection
|
|
|
|
gtk-doc
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
vala
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
systemd
|
|
|
|
libgudev
|
2021-10-14 00:43:12 +00:00
|
|
|
libpcap
|
2021-05-20 23:08:51 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
python3
|
|
|
|
which
|
|
|
|
usbutils
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dgtk_doc=true"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
doCheck = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Mock hardware devices for creating unit tests";
|
2021-05-20 23:08:51 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
2020-12-27 14:24:52 +00:00
|
|
|
maintainers = with maintainers; [ flokli ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|