33 lines
852 B
Nix
33 lines
852 B
Nix
{ stdenv, fetchFromGitHub, autoreconfHook, libtool
|
|
, pkgconfig, glib, systemd, libgudev, vala }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "umockdev-${version}";
|
|
version = "0.11.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "martinpitt";
|
|
repo = "umockdev";
|
|
rev = version;
|
|
sha256 = "1z101yw7clxz39im3y435s3rj1gna3kp0fkj9wd62vxqvk68lhik";
|
|
};
|
|
|
|
# autoreconfHook complains if we try to build the documentation
|
|
postPatch = ''
|
|
echo 'EXTRA_DIST =' > docs/gtk-doc.make
|
|
'';
|
|
|
|
buildInputs = [ glib systemd libgudev ];
|
|
|
|
nativeBuildInputs = [ autoreconfHook libtool pkgconfig vala ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Mock hardware devices for creating unit tests";
|
|
license = licenses.lgpl2;
|
|
maintainers = with maintainers; [ ndowens ];
|
|
platforms = with platforms; linux;
|
|
};
|
|
}
|