1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-15 00:54:46 +00:00
nixpkgs/pkgs/development/libraries/umockdev/default.nix

63 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv
, docbook_xsl
, fetchurl
, 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";
2018-08-12 13:08:00 +01:00
outputs = [ "bin" "out" "dev" "doc" ];
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";
};
mesonFlags = [
"-Dgtk_doc=true"
];
2018-02-17 02:55:17 +00:00
buildInputs = [ glib systemd libgudev ];
nativeBuildInputs = [
docbook_xsl
gobject-introspection
gtk-doc
meson
ninja
pkg-config
vala
];
checkInputs = [ python3 which usbutils ];
2018-05-29 10:54:18 +01:00
enableParallelBuilding = true;
2021-01-03 13:04:53 +00:00
doCheck = true;
postInstall = ''
mkdir -p $doc/share/doc/umockdev/
mv docs/reference $doc/share/doc/umockdev/
'';
meta = with lib; {
description = "Mock hardware devices for creating unit tests";
license = licenses.lgpl2;
maintainers = with maintainers; [ flokli ];
platforms = with platforms; linux;
};
}