Files
nixpkgs/pkgs/by-name/en/engelsystem/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

74 lines
1.7 KiB
Nix

{
lib,
fetchFromGitHub,
fetchYarnDeps,
nodejs,
yarn,
yarnBuildHook,
yarnConfigHook,
nixosTests,
php,
}:
php.buildComposerProject2 (finalAttrs: {
pname = "engelsystem";
version = "3.6.0";
src = fetchFromGitHub {
owner = "engelsystem";
repo = "engelsystem";
tag = "v${finalAttrs.version}";
hash = "sha256-Pi+nowImUvENx2c4gsku1KkFb3pLM84oT8WevI6ImQg=";
};
inherit php;
vendorHash = "sha256-0Mv48mB/pTQtYd2do6wTdhD/c2zwbU1gTYsdU7rELPY=";
composoerNoDev = true;
composerStrictValidation = false;
yarnOfflineCache = fetchYarnDeps {
pname = "${finalAttrs.pname}-yarn-deps";
yarnLock = "${finalAttrs.src}/yarn.lock";
hash = "sha256-nyCLM9OF2qwlW+VK38kiRMo6jMlupNFG+91N3Fb/WLY=";
};
strictDeps = true;
nativeBuildInputs = [
nodejs
yarn
yarnConfigHook
];
preBuild = ''
yarn build
'';
preInstall = ''
rm -rf node_modules
# link config and storage into FHS locations
ln -sf /etc/engelsystem/config.php ./config/config.php
rm -rf storage
ln -snf /var/lib/engelsystem/storage/ ./storage
'';
postInstall = ''
mkdir $out/bin
ln -s $out/share/php/engelsystem/bin/migrate $out/bin/migrate
'';
passthru.tests = nixosTests.engelsystem;
meta = {
changelog = "https://github.com/engelsystem/engelsystem/releases/tag/v${finalAttrs.version}";
description = "Coordinate your volunteers in teams, assign them to work shifts or let them decide for themselves when and where they want to help with what";
homepage = "https://engelsystem.de";
license = lib.licenses.gpl2Only;
mainProgram = "migrate";
maintainers = [ ];
platforms = lib.platforms.all;
};
})