1 { lib, stdenv, fetchFromGitHub, writeText, nixosTests }:
3 stdenv.mkDerivation rec {
5 version = "6.4.1+240108";
7 src = fetchFromGitHub {
11 hash = "sha256-Cpf8X6igF7LdRbFihGudFmx/8aY0Kf0BE7jHnEF1DYA=";
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;