9 stdenv.mkDerivation rec {
10 pname = "engelsystem";
14 url = "https://github.com/engelsystem/engelsystem/releases/download/v${version}/engelsystem-v${version}.zip";
15 hash = "sha256-RbzAHBZN02u14WaLtq5EOh4XwIdHKvzX7NhDBhn/CaU=";
18 buildInputs = [ php ];
26 ln -sf /etc/engelsystem/config.php ./config/config.php
27 ln -sf /var/lib/engelsystem/storage/ ./storage
29 mkdir -p $out/share/engelsystem
31 cp -r . $out/share/engelsystem
33 echo $(command -v php)
34 # The patchShebangAuto function always used the php without extensions, so path the shebang manually
35 sed -i -e "1 s|.*|#\!${lib.getExe php}|" "$out/share/engelsystem/bin/migrate"
36 ln -s "$out/share/engelsystem/bin/migrate" "$out/bin/migrate"
41 passthru.tests = nixosTests.engelsystem;
44 changelog = "https://github.com/engelsystem/engelsystem/releases/tag/v${version}";
46 "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";
47 homepage = "https://engelsystem.de";
48 license = licenses.gpl2Only;
49 mainProgram = "migrate";
50 maintainers = with maintainers; [ ];
51 platforms = platforms.all;