]> git.immae.eu Git - perso/Immae/Config/Nix/NUR.git/blob - pkgs/webapps/phpldapadmin/default.nix
Backport msmtp patch
[perso/Immae/Config/Nix/NUR.git] / pkgs / webapps / phpldapadmin / default.nix
1 { config ? "/etc/phpldapadmin/config.php", fetchurl, fetchFromGitHub, stdenv, optipng }:
2 stdenv.mkDerivation rec {
3 version = "1.2.5";
4 name = "phpldapadmin-${version}";
5 src = fetchFromGitHub {
6 owner = "leenooks";
7 repo = "phpLDAPadmin";
8 rev = "8f4ced96f9c63a09510a5bccb2189a8b92fb29ba";
9 sha256 = "1x6xc3xbvw3aj46i5ds06a8h6mfljxdv3argxrzz02l541ra6ni7";
10 };
11 patches = [
12 #./ldap-php5_5.patch
13 #./ldap-disable-mcrypt.patch
14 #./ldap-php7_2.patch
15 ./ldap-sort-in-templates.patch
16 ./ldap-align-button.patch
17 ./ldap-fix-password.patch
18 ];
19 buildInputs = [ optipng ];
20 buildPhase = ''
21 find -name '*.png' -exec optipng -quiet -force -fix {} \;
22 '';
23 installPhase = ''
24 cp -a . $out
25 ln -sf ${config} $out/config/config.php
26 '';
27 }