nixpkgs/pkgs/development/libraries/umockdev/default.nix

67 lines
1.0 KiB
Nix
Raw Normal View History

2021-03-24 04:42:11 +00:00
{ stdenv
, lib
, docbook-xsl-nons
, fetchurl
, glib
, gobject-introspection
, gtk-doc
, libgudev
2021-10-01 18:27:28 +00:00
, libpcap
, meson
, ninja
, pkg-config
, python3
, systemd
, usbutils
, vala
, which
}:
stdenv.mkDerivation rec {
pname = "umockdev";
2022-01-22 05:40:05 +00:00
version = "0.17.6";
2021-03-24 04:42:11 +00:00
outputs = [ "bin" "out" "dev" "devdoc" ];
2018-08-12 12:08:00 +00:00
src = fetchurl {
url = "https://github.com/martinpitt/umockdev/releases/download/${version}/${pname}-${version}.tar.xz";
2022-01-22 05:40:05 +00:00
sha256 = "sha256-X60zN3orHU8lOfRVCfbHTdrleKxB7ILCIGvXSZLdoSk=";
};
nativeBuildInputs = [
2021-03-24 04:42:11 +00:00
docbook-xsl-nons
gobject-introspection
gtk-doc
meson
ninja
pkg-config
vala
];
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"
];
2021-01-03 13:04:53 +00:00
doCheck = true;
meta = with lib; {
description = "Mock hardware devices for creating unit tests";
2021-03-24 04:42:11 +00:00
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ flokli ];
platforms = with platforms; linux;
};
}