All checks were successful
Build packages / Build derivations (push) Successful in 3m36s
43 lines
785 B
Nix
43 lines
785 B
Nix
{
|
|
fetchFromGitHub,
|
|
makeWrapper,
|
|
php84,
|
|
}:
|
|
php84.buildComposerProject (finalAttrs: {
|
|
pname = "shlink";
|
|
version = "4.4.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "shlinkio";
|
|
repo = "shlink";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-5JHe1xarMtNFScaTDkpaNwF1OAhmjw/R3MksALQfhhg=";
|
|
};
|
|
|
|
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-M+3eGiezHsr8H5TyUXhYLsVK316iZzcFVSo9Jwc5W/o=";
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/bin
|
|
ln -s $out/share/php/shlink/bin/cli $out/bin/shlink
|
|
'';
|
|
})
|