1 { config ? "/etc/phpldapadmin/config.php", fetchurl, fetchFromGitHub, stdenv, optipng }:
2 stdenv.mkDerivation rec {
4 name = "phpldapadmin-${version}";
5 src = fetchFromGitHub {
8 rev = "8f4ced96f9c63a09510a5bccb2189a8b92fb29ba";
9 sha256 = "1x6xc3xbvw3aj46i5ds06a8h6mfljxdv3argxrzz02l541ra6ni7";
13 #./ldap-disable-mcrypt.patch
15 ./ldap-sort-in-templates.patch
16 ./ldap-align-button.patch
17 ./ldap-fix-password.patch
19 buildInputs = [ optipng ];
21 find -name '*.png' -exec optipng -quiet -force -fix {} \;
25 ln -sf ${config} $out/config/config.php