shlink: init at 4.4.1

This commit is contained in:
uku 2025-01-29 11:34:15 +01:00
parent 953ded2042
commit c3319b9712
Signed by: uku
SSH key fingerprint: SHA256:4P0aN6M8ajKukNi6aPOaX0LacanGYtlfjmN+m/sHY/o
4 changed files with 13278 additions and 0 deletions

43
pkgs/shlink/package.nix Normal file
View file

@ -0,0 +1,43 @@
{
fetchFromGitHub,
makeWrapper,
php84,
}:
php84.buildComposerProject (finalAttrs: {
pname = "shlink";
version = "4.4.1";
src = fetchFromGitHub {
owner = "shlinkio";
repo = "shlink";
tag = "v${finalAttrs.version}";
hash = "sha256-7at90bmeJNQUh8tmIBpspSjMw7zaYqFNOfs8EIxOLUg=";
};
patches = [ ./datadir.patch ];
nativeBuildInputs = [ makeWrapper ];
php = php84.withExtensions (
{ enabled, all }:
enabled
++ (with all; [
# json
curl
pdo
intl
gd
gmp
sockets
bcmath
])
);
composerLock = ./composer.lock;
vendorHash = "sha256-hQi+1JqL0t/SfBZQqrtQbIO46/MHLbfN3z4q06G6hfE=";
postInstall = ''
mkdir -p $out/bin
ln -s $out/share/php/shlink/bin/cli $out/bin/shlink
'';
})