Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.05 79 lines 1.4 kB view raw
1{ stdenv 2, lib 3, fetchFromGitLab 4, autoconf 5, automake 6, libtool 7, which 8, pkg-config 9, python3 10, vala 11, avahi 12, gdk-pixbuf 13, gst_all_1 14, glib 15, gtk-doc 16, docbook-xsl-nons 17, docbook_xml_dtd_43 18, gobject-introspection 19, libsoup_3 20}: 21 22stdenv.mkDerivation rec { 23 pname = "libdmapsharing"; 24 version = "3.9.12"; 25 26 outputs = [ "out" "dev" "devdoc" ]; 27 outputBin = "dev"; 28 29 src = fetchFromGitLab { 30 domain = "gitlab.gnome.org"; 31 owner = "GNOME"; 32 repo = pname; 33 rev = "${lib.toUpper pname}_${lib.replaceStrings ["."] ["_"] version}"; 34 sha256 = "tnQ25RR/bAZJKa8vTwzkGK1iPc7CMGFbyX8mBf6TKr4="; 35 }; 36 37 nativeBuildInputs = [ 38 autoconf 39 automake 40 libtool 41 which 42 pkg-config 43 python3 44 gobject-introspection 45 vala 46 gtk-doc 47 docbook-xsl-nons 48 docbook_xml_dtd_43 49 ]; 50 51 buildInputs = [ 52 avahi 53 gdk-pixbuf 54 gst_all_1.gstreamer 55 gst_all_1.gst-plugins-base 56 ]; 57 58 propagatedBuildInputs = [ 59 glib 60 libsoup_3 61 ]; 62 63 configureFlags = [ 64 "--enable-gtk-doc" 65 "--disable-tests" # Tests require mDNS server. 66 ]; 67 68 preConfigure = '' 69 NOCONFIGURE=1 ./autogen.sh 70 ''; 71 72 meta = with lib; { 73 homepage = "https://www.flyn.org/projects/libdmapsharing/"; 74 description = "Library that implements the DMAP family of protocols"; 75 maintainers = teams.gnome.members; 76 license = licenses.lgpl21Plus; 77 platforms = platforms.linux; 78 }; 79}