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:
parent
1a8380360b
commit
233dc5f01f
20 changed files with 3565 additions and 3723 deletions
24
nix/package.nix
Normal file
24
nix/package.nix
Normal 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;
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue