mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 08:31:59 +00:00
35 lines
928 B
Nix
35 lines
928 B
Nix
{ stdenv, fetchFromGitHub, autoreconfHook, umockdev, gobjectIntrospection
|
|
, pkgconfig, glib, systemd, libgudev, vala }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "umockdev-${version}";
|
|
version = "0.12";
|
|
|
|
outputs = [ "bin" "out" "dev" "doc" ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "martinpitt";
|
|
repo = "umockdev";
|
|
rev = version;
|
|
sha256 = "1j7kkxpqs991w3qdlb779gzv38l1vpnlk3laabi2ndk83j1wl5k2";
|
|
};
|
|
|
|
# autoreconfHook complains if we try to build the documentation
|
|
postPatch = ''
|
|
echo 'EXTRA_DIST =' > docs/gtk-doc.make
|
|
'';
|
|
|
|
buildInputs = [ glib systemd libgudev ];
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig vala gobjectIntrospection ];
|
|
|
|
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;
|
|
};
|
|
}
|