]>
Commit | Line | Data |
---|---|---|
09bb25b9 | 1 | { config ? "/etc/phpldapadmin/config.php", fetchurl, fetchFromGitHub, stdenv, optipng }: |
24fd1fe6 | 2 | stdenv.mkDerivation rec { |
09bb25b9 | 3 | version = "1.2.5"; |
24fd1fe6 | 4 | name = "phpldapadmin-${version}"; |
09bb25b9 IB |
5 | src = fetchFromGitHub { |
6 | owner = "leenooks"; | |
7 | repo = "phpLDAPadmin"; | |
8 | rev = "8f4ced96f9c63a09510a5bccb2189a8b92fb29ba"; | |
9 | sha256 = "1x6xc3xbvw3aj46i5ds06a8h6mfljxdv3argxrzz02l541ra6ni7"; | |
24fd1fe6 IB |
10 | }; |
11 | patches = [ | |
09bb25b9 IB |
12 | #./ldap-php5_5.patch |
13 | #./ldap-disable-mcrypt.patch | |
14 | #./ldap-php7_2.patch | |
24fd1fe6 IB |
15 | ./ldap-sort-in-templates.patch |
16 | ./ldap-align-button.patch | |
09bb25b9 | 17 | ./ldap-fix-password.patch |
24fd1fe6 IB |
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 | } |