umockdev: clean up
This commit is contained in:
parent
2b9c8ba171
commit
09ab9ec7bf
|
@ -1,5 +1,6 @@
|
||||||
{ lib, stdenv
|
{ stdenv
|
||||||
, docbook_xsl
|
, lib
|
||||||
|
, docbook-xsl-nons
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, fetchpatch
|
, fetchpatch
|
||||||
, glib
|
, glib
|
||||||
|
@ -20,7 +21,7 @@ stdenv.mkDerivation rec {
|
||||||
pname = "umockdev";
|
pname = "umockdev";
|
||||||
version = "0.15.4";
|
version = "0.15.4";
|
||||||
|
|
||||||
outputs = [ "bin" "out" "dev" "doc" ];
|
outputs = [ "bin" "out" "dev" "devdoc" ];
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/martinpitt/umockdev/releases/download/${version}/${pname}-${version}.tar.xz";
|
url = "https://github.com/martinpitt/umockdev/releases/download/${version}/${pname}-${version}.tar.xz";
|
||||||
|
@ -35,14 +36,8 @@ stdenv.mkDerivation rec {
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
mesonFlags = [
|
|
||||||
"-Dgtk_doc=true"
|
|
||||||
];
|
|
||||||
|
|
||||||
buildInputs = [ glib systemd libgudev ];
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
docbook_xsl
|
docbook-xsl-nons
|
||||||
gobject-introspection
|
gobject-introspection
|
||||||
gtk-doc
|
gtk-doc
|
||||||
meson
|
meson
|
||||||
|
@ -51,20 +46,27 @@ stdenv.mkDerivation rec {
|
||||||
vala
|
vala
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [ python3 which usbutils ];
|
buildInputs = [
|
||||||
|
glib
|
||||||
|
systemd
|
||||||
|
libgudev
|
||||||
|
];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
checkInputs = [
|
||||||
|
python3
|
||||||
|
which
|
||||||
|
usbutils
|
||||||
|
];
|
||||||
|
|
||||||
|
mesonFlags = [
|
||||||
|
"-Dgtk_doc=true"
|
||||||
|
];
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
postInstall = ''
|
|
||||||
mkdir -p $doc/share/doc/umockdev/
|
|
||||||
mv docs/reference $doc/share/doc/umockdev/
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Mock hardware devices for creating unit tests";
|
description = "Mock hardware devices for creating unit tests";
|
||||||
license = licenses.lgpl2;
|
license = licenses.lgpl21Plus;
|
||||||
maintainers = with maintainers; [ flokli ];
|
maintainers = with maintainers; [ flokli ];
|
||||||
platforms = with platforms; linux;
|
platforms = with platforms; linux;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue