From 1a64deeb894dc95e2645a75771732c6cc53a79ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Wed, 4 Oct 2023 01:35:06 +0200 Subject: Squash changes containing private information There were a lot of changes since the previous commit, but a lot of them contained personnal information about users. All thos changes got stashed into a single commit (history is kept in a different place) and private information was moved in a separate private repository --- .../pkgs/webapps/phpldapadmin/default.nix | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 flakes/mypackages/pkgs/webapps/phpldapadmin/default.nix (limited to 'flakes/mypackages/pkgs/webapps/phpldapadmin/default.nix') diff --git a/flakes/mypackages/pkgs/webapps/phpldapadmin/default.nix b/flakes/mypackages/pkgs/webapps/phpldapadmin/default.nix new file mode 100644 index 0000000..da32f97 --- /dev/null +++ b/flakes/mypackages/pkgs/webapps/phpldapadmin/default.nix @@ -0,0 +1,27 @@ +{ config ? "/etc/phpldapadmin/config.php", fetchurl, fetchFromGitHub, stdenv, optipng }: +stdenv.mkDerivation rec { + version = "1.2.5"; + name = "phpldapadmin-${version}"; + src = fetchFromGitHub { + owner = "leenooks"; + repo = "phpLDAPadmin"; + rev = "8f4ced96f9c63a09510a5bccb2189a8b92fb29ba"; + sha256 = "1x6xc3xbvw3aj46i5ds06a8h6mfljxdv3argxrzz02l541ra6ni7"; + }; + patches = [ + #./ldap-php5_5.patch + #./ldap-disable-mcrypt.patch + #./ldap-php7_2.patch + ./ldap-sort-in-templates.patch + ./ldap-align-button.patch + ./ldap-fix-password.patch + ]; + buildInputs = [ optipng ]; + buildPhase = '' + find -name '*.png' -exec optipng -quiet -force -fix {} \; + ''; + installPhase = '' + cp -a . $out + ln -sf ${config} $out/config/config.php + ''; +} -- cgit v1.2.3