many changes

This commit is contained in:
2025-06-17 16:46:01 +02:00
parent 91394ef68a
commit 6aeb0c9f89
10 changed files with 180 additions and 26 deletions

View File

@@ -0,0 +1,36 @@
{ fetchurl, lib, stdenv, nodejs_24, php, phpPackages }:
stdenv.mkDerivation rec {
pname = "phpLDAPadmin";
version = "2.1.4";
src = fetchurl {
url = "https://github.com/leenooks/phpLDAPadmin/archive/${version}.tar.gz";
sha256 = "sha256-hkigC458YSgAZVCzVznix8ktDBuQm+UH3ujXn9Umylc=";
};
# Pull in PHP itself and Composer
buildInputs = [ php nodejs_24 ];
nativeBuildInputs = [ phpPackages.composer ];
# Let composer do its work
buildPhase = ''
# install all PHP dependencies into vendor/
npm i
npm run prod
composer i --no-dev
'';
installPhase = ''
mkdir -p $out
# copy everythingincluding the newly created vendor/ directory
cp -r . $out/
ln -sf /etc/phpldapadmin/env $out/.env
'';
meta = {
description = "phpLDAPadmin";
license = lib.licenses.gpl3;
platforms = lib.platforms.all;
};
}