api-test/nix/demostf-api.nix
2026-10-24 18:21:40 +02:00

28 lines
627 B
Nix

{
php,
fetchFromGitea,
}: let
phpWithExtensions = php.withExtensions ({
enabled,
all,
}:
enabled ++ (with all; [pdo apcu]));
in
phpWithExtensions.buildComposerProject (finalAttrs: {
pname = "demostf-api";
version = "0.1.0";
src = fetchFromGitea {
domain = "codeberg.org";
owner = "demostf";
repo = "api";
rev = "fff9070dfb14a7d8b07427e50395009f079339f0";
hash = "sha256-yBpQGXAL19z7J2t4dYr1LP3+2d8C9cLY9WvjMtjs2rw=";
};
vendorHash = "sha256-EYWCR2aJAoyWvEX+SML4Fb3F3KGcUtwCgqhAGT6ZjZ4=";
composerStrictValidation = true;
doCheck = false;
})