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

35 lines
932 B
Nix
Raw Normal View History

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