From: Andrea Zagli Date: Thu, 8 Sep 2022 06:17:53 +0000 (+0200) Subject: Pacchetto libzakformcgi. X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=626c2c1008e179231248997414385098bfba0a3d;p=nix%2Fpkgs Pacchetto libzakformcgi. --- diff --git a/libzakformcgi.nix b/libzakformcgi.nix new file mode 100644 index 0000000..4fb38b8 --- /dev/null +++ b/libzakformcgi.nix @@ -0,0 +1,32 @@ +{ pkgs ? import {} }: + +pkgs.stdenv.mkDerivation rec { + pname = "libzakformcgi"; + version = "0.0.1"; + + src = pkgs.fetchgit { + url = "https://saetta.ns0.it/git/zakform/cgi"; + sha256 = "crqvOxduBUduI7ZVSOFZSGqd3ok4oMI/dvq1cV+JN4Y="; + rev = "e1bd04669361dfafa25e06b82cb0e17ae698e17d"; + }; + + libzakform = pkgs.callPackage ./libzakform.nix {}; + + nativeBuildInputs = [ pkgs.gnome.gnome-common pkgs.autoconf pkgs.automake pkgs.glib pkgs.intltool pkgs.libtool pkgs.gtk-doc pkgs.gobject-introspection ]; + + buildInputs = [ pkgs.pkg-config pkgs.libxml2 (pkgs.callPackage ./libzakutils.nix {}) libzakform (pkgs.callPackage ./libzakformini.nix {}) (pkgs.callPackage ./libzakcgi.nix {}) ]; + + PKG_CONFIG_LIBZAKFORM_MODULESDIR="${libzakform}/lib/libzakform/modules"; + + preConfigure= + '' + chmod +w ${libzakform}/lib/libzakform/modules + sed -i -e 's/bin\/bash/bin\/sh/g' ./autogen.sh + ./autogen.sh + ''; + + postInstall= + '' + chmod -w ${libzakform}/lib/libzakform/modules + ''; +}