1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-03 17:14:08 +02:00

fix phpunit

This commit is contained in:
Robin Appelman 2025-06-10 16:05:43 +02:00
commit 7985255d9d
7 changed files with 85 additions and 16 deletions

View file

@ -24,12 +24,15 @@
minio-client,
neovim,
helix,
sudo,
su,
which,
debug ? false,
writeShellApplication,
}: let
inherit (lib) readFile getExe;
inherit (lib) readFile getExe concatStringsSep splitString take;
phpVersion = lib.concatStringsSep "." (lib.take 2 (lib.splitString "." php.version));
phpVersion = concatStringsSep "." (take 2 (splitString "." php.version));
phpEnv = callPackage ./php.nix {inherit debug php;};
bootstrap-nginx = writeShellApplication {
@ -41,6 +44,10 @@
runtimeInputs = [getent];
text = readFile ./bootstrap.sh;
};
shadowSetupScript = writeShellApplication {
name = "shadow-setup";
text = dockerTools.shadowSetup;
};
tmpDir = runCommand "tmp-dir" {} ''
mkdir -p $out/tmp
@ -56,6 +63,7 @@
'';
configs = callPackage ./configs.nix {};
scripts = callPackage ./scripts.nix {};
phpunit = callPackage ./phpunit.nix {php = phpEnv;};
redis-certificates = runCommand "scripts" {} ''
mkdir -p $out
cp -r ${../../redis-certificates} $out/redis-certificates
@ -68,7 +76,6 @@
copyToRoot = [
dockerTools.caCertificates
dockerTools.usrBinEnv
dockerTools.fakeNss
bash
blackfire
nginx
@ -80,6 +87,9 @@
procps
gnugrep
minio-client
sudo
su
which
# samba
wget
curl
@ -96,6 +106,7 @@
copyToRoot = [
phpEnv
phpEnv.packages.composer
phpunit
];
};
in
@ -111,6 +122,7 @@ in
configs
scripts
redis-certificates
shadowSetupScript
];
fakeRootCommands = ''
chmod 1777 tmp