lol

Merge pull request #44651 from jtojnar/gobby

gobby5: fix build

authored by

Jan Tojnar and committed by
GitHub
f496d262 cfa49751

+57 -64
+4 -4
nixos/modules/services/editors/infinoted.nix
··· 10 10 11 11 package = mkOption { 12 12 type = types.package; 13 - default = pkgs.libinfinity.override { daemon = true; }; 14 - defaultText = "pkgs.libinfinity.override { daemon = true; }"; 13 + default = pkgs.libinfinity; 14 + defaultText = "pkgs.libinfinity"; 15 15 description = '' 16 16 Package providing infinoted 17 17 ''; ··· 119 119 users.groups = optional (cfg.group == "infinoted") 120 120 { name = "infinoted"; 121 121 }; 122 - 122 + 123 123 systemd.services.infinoted = 124 124 { description = "Gobby Dedicated Server"; 125 125 ··· 129 129 serviceConfig = { 130 130 Type = "simple"; 131 131 Restart = "always"; 132 - ExecStart = "${cfg.package}/bin/infinoted-${versions.majorMinor cfg.package.version} --config-file=/var/lib/infinoted/infinoted.conf"; 132 + ExecStart = "${cfg.package.infinoted} --config-file=/var/lib/infinoted/infinoted.conf"; 133 133 User = cfg.user; 134 134 Group = cfg.group; 135 135 PermissionsStartOnly = true;
+12 -16
pkgs/applications/editors/gobby/default.nix
··· 1 1 { avahiSupport ? false # build support for Avahi in libinfinity 2 - , gnomeSupport ? false # build support for Gnome(gnome-vfs) 3 - , stdenv, fetchurl, pkgconfig 4 - , gtkmm2, gsasl, gtksourceview, libxmlxx, libinfinity, intltool 5 - , gnome_vfs ? null}: 2 + , stdenv, fetchurl, fetchFromGitHub, autoconf, automake, pkgconfig, wrapGAppsHook 3 + , gtkmm3, gsasl, gtksourceview3, libxmlxx, libinfinity, intltool, itstool, gnome3 }: 6 4 7 5 let 8 6 libinf = libinfinity.override { gtkWidgets = true; inherit avahiSupport; }; 9 - 10 7 in stdenv.mkDerivation rec { 11 - 12 - name = "gobby-0.5.0"; 13 - src = fetchurl { 14 - url = "http://releases.0x539.de/gobby/${name}.tar.gz"; 15 - sha256 = "165x0r668ma5blziisvbr8qig3jw9hf7i6w8r7wwvz3wsac3bswc"; 8 + name = "gobby-unstable-2018-04-03"; 9 + src = fetchFromGitHub { 10 + owner = "gobby"; 11 + repo = "gobby"; 12 + rev = "ea4df27c9b6b885434797b0071ce198b23f9f63b"; 13 + sha256 = "0q7lq64yn16lxvj4jphs8y9194h0xppj8k7y9x8b276krraak2az"; 16 14 }; 17 15 18 - nativeBuildInputs = [ pkgconfig ]; 19 - buildInputs = [ gtkmm2 gsasl gtksourceview libxmlxx libinf intltool ] 20 - ++ stdenv.lib.optional gnomeSupport gnome_vfs; 21 - 22 - configureFlags = '' 23 - ''; 16 + nativeBuildInputs = [ autoconf automake pkgconfig intltool itstool gnome3.yelp-tools wrapGAppsHook ]; 17 + buildInputs = [ gtkmm3 gsasl gtksourceview3 libxmlxx libinf ]; 18 + 19 + preConfigure = "./autogen.sh"; 24 20 25 21 meta = with stdenv.lib; { 26 22 homepage = http://gobby.0x539.de/;
+39 -38
pkgs/development/libraries/libinfinity/default.nix
··· 1 1 { gtkWidgets ? false # build GTK widgets for libinfinity 2 - , daemon ? false # build infinote daemon 3 - , documentation ? false # build documentation 4 2 , avahiSupport ? false # build support for Avahi in libinfinity 5 3 , stdenv, fetchurl, pkgconfig, glib, libxml2, gnutls, gsasl 6 - , gtk2 ? null, gtkdoc ? null, avahi ? null, libdaemon ? null, libidn, gss 4 + , gobjectIntrospection 5 + , gtk3 ? null, gtk-doc, docbook_xsl, docbook_xml_dtd_412, avahi ? null, libdaemon, libidn, gss 7 6 , libintl }: 8 7 8 + assert avahiSupport -> avahi != null; 9 + assert gtkWidgets -> gtk3 != null; 10 + 9 11 let 10 - edf = flag: feature: (if flag then "--with-" else "--without-") + feature; 11 - optional = cond: elem: assert cond -> elem != null; if cond then [elem] else []; 12 + mkFlag = flag: feature: (if flag then "--with-" else "--without-") + feature; 12 13 13 - in stdenv.mkDerivation rec { 14 + self = stdenv.mkDerivation rec { 15 + name = "libinfinity-${version}"; 16 + version = "0.7.1"; 17 + src = fetchurl { 18 + url = "http://releases.0x539.de/libinfinity/${name}.tar.gz"; 19 + sha256 = "1jw2fhrcbpyz99bij07iyhy9ffyqdn87vl8cb1qz897y3f2f0vk2"; 20 + }; 14 21 15 - name = "libinfinity-${version}"; 16 - version = "0.7.1"; 17 - src = fetchurl { 18 - url = "http://releases.0x539.de/libinfinity/${name}.tar.gz"; 19 - sha256 = "1jw2fhrcbpyz99bij07iyhy9ffyqdn87vl8cb1qz897y3f2f0vk2"; 20 - }; 22 + outputs = [ "bin" "out" "dev" "man" "devdoc" ]; 21 23 22 - nativeBuildInputs = [ pkgconfig ]; 23 - buildInputs = [ glib libxml2 gsasl libidn gss libintl ] 24 - ++ optional gtkWidgets gtk2 25 - ++ optional documentation gtkdoc 26 - ++ optional avahiSupport avahi 27 - ++ optional daemon libdaemon; 24 + nativeBuildInputs = [ pkgconfig gtk-doc docbook_xsl docbook_xml_dtd_412 gobjectIntrospection ]; 25 + buildInputs = [ glib libxml2 gsasl libidn gss libintl libdaemon ] 26 + ++ stdenv.lib.optional gtkWidgets gtk3 27 + ++ stdenv.lib.optional avahiSupport avahi; 28 28 29 - propagatedBuildInputs = [ gnutls ]; 29 + propagatedBuildInputs = [ gnutls ]; 30 30 31 - configureFlags = '' 32 - ${if documentation then "--enable-gtk-doc" else "--disable-gtk-doc"} 33 - ${edf gtkWidgets "inftextgtk"} 34 - ${edf gtkWidgets "infgtk"} 35 - ${edf daemon "infinoted"} 36 - ${edf daemon "libdaemon"} 37 - ${edf avahiSupport "avahi"} 38 - ''; 31 + configureFlags = [ 32 + "--enable-gtk-doc" 33 + "--enable-introspection" 34 + (mkFlag gtkWidgets "inftextgtk") 35 + (mkFlag gtkWidgets "infgtk") 36 + "--with-infinoted" 37 + "--with-libdaemon" 38 + (mkFlag avahiSupport "avahi") 39 + ]; 39 40 40 - passthru = { 41 - inherit version; 42 - }; 41 + passthru = { 42 + infinoted = "${self.bin}/bin/infinoted-${stdenv.lib.versions.majorMinor version}"; 43 + }; 43 44 44 - meta = { 45 - homepage = http://gobby.0x539.de/; 46 - description = "An implementation of the Infinote protocol written in GObject-based C"; 47 - license = stdenv.lib.licenses.lgpl2Plus; 48 - maintainers = [ stdenv.lib.maintainers.phreedom ]; 49 - platforms = with stdenv.lib.platforms; linux ++ darwin; 45 + meta = { 46 + homepage = http://gobby.0x539.de/; 47 + description = "An implementation of the Infinote protocol written in GObject-based C"; 48 + license = stdenv.lib.licenses.lgpl2Plus; 49 + maintainers = [ stdenv.lib.maintainers.phreedom ]; 50 + platforms = with stdenv.lib.platforms; linux ++ darwin; 51 + }; 50 52 }; 51 - 52 - } 53 + in self
+2 -6
pkgs/top-level/all-packages.nix
··· 10514 10514 10515 10515 libiec61883 = callPackage ../development/libraries/libiec61883 { }; 10516 10516 10517 - libinfinity = callPackage ../development/libraries/libinfinity { 10518 - inherit (gnome2) gtkdoc; 10519 - }; 10517 + libinfinity = callPackage ../development/libraries/libinfinity { }; 10520 10518 10521 10519 libinput = callPackage ../development/libraries/libinput { 10522 10520 graphviz = graphviz-nox; ··· 16512 16510 16513 16511 gocr = callPackage ../applications/graphics/gocr { }; 16514 16512 16515 - gobby5 = callPackage ../applications/editors/gobby { 16516 - inherit (gnome2) gtksourceview; 16517 - }; 16513 + gobby5 = callPackage ../applications/editors/gobby { }; 16518 16514 16519 16515 gphoto2 = callPackage ../applications/misc/gphoto2 { }; 16520 16516