mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
67 lines
1.0 KiB
Nix
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;
|
|
};
|
|
}
|