1
0
Fork 0
mirror of https://codeberg.org/demostf/api.git synced 2026-08-02 20:34:45 +02:00

flake reorg, nix integration testing

This commit is contained in:
Robin Appelman 2024-12-24 18:27:52 +01:00
commit 233dc5f01f
20 changed files with 3565 additions and 3723 deletions

24
nix/package.nix Normal file
View file

@ -0,0 +1,24 @@
{
lib,
demostf-api-php,
dev ? false,
}: let
inherit (lib.sources) sourceByRegex;
in
demostf-api-php.buildComposerProject (finalAttrs: {
pname = "demostf-api";
version = "0.1.0";
composerNoDev = !dev;
src = sourceByRegex ../. ["composer.*" "(src|test)(/.*)?"];
vendorHash =
if dev
then "sha256-PBp2PHoKfM66BjWxbEt5suKlkUxDxXdxhhCVzfRbJdo="
else "sha256-EYWCR2aJAoyWvEX+SML4Fb3F3KGcUtwCgqhAGT6ZjZ4=";
composerStrictValidation = false;
doCheck = false;
})