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

74 lines
1.3 KiB
Nix
Raw Normal View History

2021-03-24 04:42:11 +00:00
{ stdenv
, lib
, docbook-xsl-nons
, fetchurl
2021-03-24 04:40:11 +00:00
, fetchpatch
, glib
, gobject-introspection
, gtk-doc
, libgudev
, meson
, ninja
, pkg-config
, python3
, systemd
, usbutils
, vala
, which
}:
stdenv.mkDerivation rec {
pname = "umockdev";
2021-01-03 13:04:53 +00:00
version = "0.15.4";
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";
2021-01-03 13:04:53 +00:00
sha256 = "09k8jwvsphd97hcagf0zaf0hwzlzq2r8jfgbmvj55k7ylrg8hjxg";
};
2021-03-24 04:40:11 +00:00
patches = [
# Fix build with Vala 0.52
(fetchpatch {
url = "https://github.com/martinpitt/umockdev/commit/a236f0b55fbb6ff50a6429da9d404703d6637d94.patch";
sha256 = "sZs9Ove1r7te/a9vmWUmFetLVhyzhHmx7ijhkK/2S5o=";
})
];
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
];
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;
};
}