shlink: set shlink version in the files
All checks were successful
Build packages / Build derivations (push) Successful in 3m16s

This commit is contained in:
uku 2025-05-05 14:21:08 +02:00
parent be63ca798e
commit f237d37b66
Signed by: uku
SSH key fingerprint: SHA256:4P0aN6M8ajKukNi6aPOaX0LacanGYtlfjmN+m/sHY/o

View file

@ -36,6 +36,10 @@ php84.buildComposerProject (finalAttrs: {
composerLock = ./composer.lock; composerLock = ./composer.lock;
vendorHash = "sha256-M+3eGiezHsr8H5TyUXhYLsVK316iZzcFVSo9Jwc5W/o="; vendorHash = "sha256-M+3eGiezHsr8H5TyUXhYLsVK316iZzcFVSo9Jwc5W/o=";
postPatch = ''
sed -i "s/%SHLINK_VERSION%/${finalAttrs.version}/g" module/Core/src/Config/Options/AppOptions.php
'';
postInstall = '' postInstall = ''
mkdir -p $out/bin mkdir -p $out/bin
ln -s $out/share/php/shlink/bin/cli $out/bin/shlink ln -s $out/share/php/shlink/bin/cli $out/bin/shlink