Skip to content

Commit

Permalink
postfixadmin: allow changing config.local.php and templates_c path
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamillaova committed Feb 10, 2025
1 parent 5613c53 commit 7ceada0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkgs/by-name/po/postfixadmin/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
stdenv,
fetchFromGitHub,
nixosTests,

configLocalPath ? "/etc/postfixadmin/config.local.php",
templatesCachePath ? "/var/cache/postfixadmin/templates_c",
}:
stdenv.mkDerivation (finalAttrs: {
pname = "postfixadmin";
Expand All @@ -18,8 +21,8 @@ stdenv.mkDerivation (finalAttrs: {
installPhase = ''
mkdir $out
cp -r * $out/
ln -sf /etc/postfixadmin/config.local.php $out/
ln -sf /var/cache/postfixadmin/templates_c $out/
ln -sf '${configLocalPath}' $out/config.local.php
ln -sf '${templatesCachePath}' $out/templates_c
'';

passthru.tests = { inherit (nixosTests) postfixadmin; };
Expand Down

0 comments on commit 7ceada0

Please sign in to comment.