diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2023-10-04 01:35:06 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2023-10-04 02:11:48 +0200 |
commit | 1a64deeb894dc95e2645a75771732c6cc53a79ad (patch) | |
tree | 1b9df4838f894577a09b9b260151756272efeb53 /flakes/mypackages/pkgs/webapps/phpldapadmin/default.nix | |
parent | fa25ffd4583cc362075cd5e1b4130f33306103f0 (diff) | |
download | Nix-1a64deeb894dc95e2645a75771732c6cc53a79ad.tar.gz Nix-1a64deeb894dc95e2645a75771732c6cc53a79ad.tar.zst Nix-1a64deeb894dc95e2645a75771732c6cc53a79ad.zip |
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
Diffstat (limited to 'flakes/mypackages/pkgs/webapps/phpldapadmin/default.nix')
-rw-r--r-- | flakes/mypackages/pkgs/webapps/phpldapadmin/default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
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 @@ | |||
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 | } | ||