2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, writeText, nixosTests }:
|
2015-02-07 20:20:53 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-03-06 12:40:22 +00:00
|
|
|
pname = "limesurvey";
|
2023-03-20 12:31:32 +00:00
|
|
|
version = "5.6.9+230306";
|
2015-02-07 20:20:53 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "LimeSurvey";
|
|
|
|
repo = "LimeSurvey";
|
|
|
|
rev = version;
|
2023-03-20 12:31:32 +00:00
|
|
|
hash = "sha256-FBcpP9Zb4flr1AZlocRW8xx9UCXJAU9aaGXcWQE6iWc=";
|
2015-02-07 20:20:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
phpConfig = writeText "config.php" ''
|
|
|
|
<?php
|
|
|
|
return require(getenv('LIMESURVEY_CONFIG'));
|
|
|
|
?>
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2019-08-24 12:15:13 +00:00
|
|
|
runHook preInstall
|
|
|
|
|
2019-03-14 01:43:50 +00:00
|
|
|
mkdir -p $out/share/limesurvey
|
|
|
|
cp -r . $out/share/limesurvey
|
2015-02-07 20:20:53 +00:00
|
|
|
cp ${phpConfig} $out/share/limesurvey/application/config/config.php
|
2019-08-24 12:15:13 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
2015-02-07 20:20:53 +00:00
|
|
|
'';
|
|
|
|
|
2020-09-01 20:47:38 +00:00
|
|
|
passthru.tests = {
|
|
|
|
smoke-test = nixosTests.limesurvey;
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-02-07 20:20:53 +00:00
|
|
|
description = "Open source survey application";
|
|
|
|
license = licenses.gpl2;
|
2019-03-14 01:43:50 +00:00
|
|
|
homepage = "https://www.limesurvey.org";
|
2015-02-07 20:20:53 +00:00
|
|
|
maintainers = with maintainers; [offline];
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = with platforms; unix;
|
2023-05-16 17:18:22 +00:00
|
|
|
broken = true; # Not compatible with PHP 8.1
|
2015-02-07 20:20:53 +00:00
|
|
|
};
|
|
|
|
}
|