feat: many changes

This commit is contained in:
2025-07-11 11:19:42 +02:00
parent da95b2fa71
commit 7f01dc4cac
15 changed files with 107 additions and 110 deletions

View File

@@ -0,0 +1,7 @@
# default.nix
let
pkgs = import <nixpkgs> {};
in
{
phpLDAPadmin = pkgs.callPackage ./phpldapadmin.nix { };
}

Binary file not shown.

View File

@@ -4,7 +4,7 @@ stdenv.mkDerivation rec {
pname = "foundry-vtt";
version = "12.331";
src = ./FoundryVTT-12.331.zip;
src = ./FoundryVTT-12.343.zip;
nativeBuildInputs = [ unzip ];

View File

@@ -1,29 +1,16 @@
{ fetchurl, lib, stdenv, nodejs_24, php, phpPackages }:
{ fetchurl, lib, stdenv }:
stdenv.mkDerivation rec {
pname = "phpLDAPadmin";
version = "2.1.4";
pname = "phpLDAPadmin";
version = "2.1.4";
src = fetchurl {
url = "https://github.com/leenooks/phpLDAPadmin/archive/${version}.tar.gz";
sha256 = "sha256-hkigC458YSgAZVCzVznix8ktDBuQm+UH3ujXn9Umylc=";
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
'';