mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 10:43:27 +00:00
7e902f5399
umockdev: all-packages cosmetic change
34 lines
984 B
Nix
34 lines
984 B
Nix
{ stdenv, fetchFromGitHub, autoreconfHook
|
|
, pkgconfig, glib, systemd, libgudev, vala }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "umockdev";
|
|
version = "0.8.13";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "martinpitt";
|
|
repo = "umockdev";
|
|
rev = version;
|
|
sha256 ="0bw2dpshlgbdwg5mhq4j22z474llpqix8pxii63r2bk5nhjc537k";
|
|
};
|
|
|
|
buildInputs = [ glib systemd libgudev vala ];
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
|
|
### docs/gtk-doc.make not found
|
|
prePatch = ''
|
|
sed -i 's|include $(top_srcdir)/docs/gtk-doc.make||g' docs/reference/Makefile.am
|
|
sed -i 's|+=|=|g' docs/reference/Makefile.am
|
|
'';
|
|
|
|
preConfigure = ''
|
|
# sed -i 's|gobject-2.0 >= 2.32.0 gio-2.0 >= 2.32.0 gio-unix-2.0 >= 2.32.0)|gobject-2.0 >= 2.32.0, gio-2.0 >= 2.32.0, gio-unix-2.0 >= 2.32.0)|g' configure
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Mock hardware devices for creating unit tests";
|
|
license = licenses.lgpl2;
|
|
maintainers = [ maintainers.ndowens ];
|
|
};
|
|
}
|