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

33 lines
850 B
Nix
Raw Normal View History

2018-05-29 09:54:18 +00:00
{ stdenv, fetchFromGitHub, autoreconfHook, libtool
2018-02-17 02:55:17 +00:00
, pkgconfig, glib, systemd, libgudev, vala }:
stdenv.mkDerivation rec {
2018-02-17 02:55:17 +00:00
name = "umockdev-${version}";
version = "0.12";
src = fetchFromGitHub {
2018-05-29 09:54:18 +00:00
owner = "martinpitt";
repo = "umockdev";
rev = version;
sha256 = "1j7kkxpqs991w3qdlb779gzv38l1vpnlk3laabi2ndk83j1wl5k2";
};
2018-05-29 09:54:18 +00:00
# autoreconfHook complains if we try to build the documentation
postPatch = ''
echo 'EXTRA_DIST =' > docs/gtk-doc.make
'';
2018-02-17 02:55:17 +00:00
buildInputs = [ glib systemd libgudev ];
2018-05-29 09:54:18 +00:00
nativeBuildInputs = [ autoreconfHook libtool pkgconfig vala ];
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "Mock hardware devices for creating unit tests";
license = licenses.lgpl2;
2018-05-29 09:54:18 +00:00
maintainers = with maintainers; [ ndowens ];
platforms = with platforms; linux;
};
}