nixpkgs/pkgs/development/libraries/umockdev/default.nix
2022-03-02 18:31:16 +00:00

67 lines
1.0 KiB
Nix

{ stdenv
, lib
, docbook-xsl-nons
, fetchurl
, glib
, gobject-introspection
, gtk-doc
, libgudev
, libpcap
, meson
, ninja
, pkg-config
, python3
, systemd
, usbutils
, vala
, which
}:
stdenv.mkDerivation rec {
pname = "umockdev";
version = "0.17.7";
outputs = [ "bin" "out" "dev" "devdoc" ];
src = fetchurl {
url = "https://github.com/martinpitt/umockdev/releases/download/${version}/${pname}-${version}.tar.xz";
sha256 = "sha256-BdZCoW3QHM4Oue4bpuSFsuwIU1vsZ5pjqVv9TfGNC7U=";
};
nativeBuildInputs = [
docbook-xsl-nons
gobject-introspection
gtk-doc
meson
ninja
pkg-config
vala
];
buildInputs = [
glib
systemd
libgudev
libpcap
];
checkInputs = [
python3
which
usbutils
];
mesonFlags = [
"-Dgtk_doc=true"
];
doCheck = true;
meta = with lib; {
description = "Mock hardware devices for creating unit tests";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ flokli ];
platforms = with platforms; linux;
};
}