1 { lib, stdenv, fetchFromGitHub, writeText, nixosTests }:
3 stdenv.mkDerivation rec {
5 version = "6.6.5+240924";
7 src = fetchFromGitHub {
11 hash = "sha256-CuuTFCDY7jnF2njZdyB6e8/nRf0n0ybKgZ0QscC2IAI=";
14 phpConfig = writeText "config.php" ''
16 return require(getenv('LIMESURVEY_CONFIG'));
23 mkdir -p $out/share/limesurvey
24 cp -r . $out/share/limesurvey
25 cp ${phpConfig} $out/share/limesurvey/application/config/config.php
31 smoke-test = nixosTests.limesurvey;
35 description = "Open source survey application";
36 license = licenses.gpl2Plus;
37 homepage = "https://www.limesurvey.org";
38 maintainers = with maintainers; [offline];
39 platforms = with platforms; unix;