From 626c2c1008e179231248997414385098bfba0a3d Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Thu, 8 Sep 2022 08:17:53 +0200 Subject: [PATCH] Pacchetto libzakformcgi. --- libzakformcgi.nix | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 libzakformcgi.nix 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 + ''; +} -- 2.49.0