nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 19.03 34 lines 932 B view raw
1{ stdenv, fetchFromGitHub, autoreconfHook, umockdev, gobject-introspection 2, pkgconfig, glib, systemd, libgudev, vala }: 3 4stdenv.mkDerivation rec { 5 name = "umockdev-${version}"; 6 version = "0.12.1"; 7 8 outputs = [ "bin" "out" "dev" "doc" ]; 9 10 src = fetchFromGitHub { 11 owner = "martinpitt"; 12 repo = "umockdev"; 13 rev = version; 14 sha256 = "0wnmz4jh04mvqzjnqvxrah969gg4x4v8d6ip61zc7jpbwnqb2fpg"; 15 }; 16 17 # autoreconfHook complains if we try to build the documentation 18 postPatch = '' 19 echo 'EXTRA_DIST =' > docs/gtk-doc.make 20 ''; 21 22 buildInputs = [ glib systemd libgudev ]; 23 24 nativeBuildInputs = [ autoreconfHook pkgconfig vala gobject-introspection ]; 25 26 enableParallelBuilding = true; 27 28 meta = with stdenv.lib; { 29 description = "Mock hardware devices for creating unit tests"; 30 license = licenses.lgpl2; 31 maintainers = with maintainers; [ ndowens ]; 32 platforms = with platforms; linux; 33 }; 34}