nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 21.11 66 lines 1.0 kB view raw
1{ stdenv 2, lib 3, docbook-xsl-nons 4, fetchurl 5, glib 6, gobject-introspection 7, gtk-doc 8, libgudev 9, libpcap 10, meson 11, ninja 12, pkg-config 13, python3 14, systemd 15, usbutils 16, vala 17, which 18}: 19 20stdenv.mkDerivation rec { 21 pname = "umockdev"; 22 version = "0.16.3"; 23 24 outputs = [ "bin" "out" "dev" "devdoc" ]; 25 26 src = fetchurl { 27 url = "https://github.com/martinpitt/umockdev/releases/download/${version}/${pname}-${version}.tar.xz"; 28 sha256 = "TjHxqtz8mPhzpsMb5lXWdj8hx/whsadTfor4S2x4U2M="; 29 }; 30 31 nativeBuildInputs = [ 32 docbook-xsl-nons 33 gobject-introspection 34 gtk-doc 35 meson 36 ninja 37 pkg-config 38 vala 39 ]; 40 41 buildInputs = [ 42 glib 43 systemd 44 libgudev 45 libpcap 46 ]; 47 48 checkInputs = [ 49 python3 50 which 51 usbutils 52 ]; 53 54 mesonFlags = [ 55 "-Dgtk_doc=true" 56 ]; 57 58 doCheck = true; 59 60 meta = with lib; { 61 description = "Mock hardware devices for creating unit tests"; 62 license = licenses.lgpl21Plus; 63 maintainers = with maintainers; [ flokli ]; 64 platforms = with platforms; linux; 65 }; 66}