2019-03-14 01:43:50 +00:00
|
|
|
{ stdenv, fetchFromGitHub, writeText }:
|
2015-02-07 20:20:53 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-03-06 12:40:22 +00:00
|
|
|
pname = "limesurvey";
|
|
|
|
version = "3.17.1+190408";
|
2015-02-07 20:20:53 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "LimeSurvey";
|
|
|
|
repo = "LimeSurvey";
|
|
|
|
rev = version;
|
2019-03-06 12:40:22 +00:00
|
|
|
sha256 = "0d6dgw9af492vn5yg2hq82ipq4p80c19lhky0dpwrm5kv67kxbhv";
|
2015-02-07 20:20:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
phpConfig = writeText "config.php" ''
|
|
|
|
<?php
|
|
|
|
return require(getenv('LIMESURVEY_CONFIG'));
|
|
|
|
?>
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
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-03-14 01:43:50 +00:00
|
|
|
meta = with stdenv.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 18:50:55 +01:00
|
|
|
platforms = with platforms; unix;
|
2015-02-07 20:20:53 +00:00
|
|
|
};
|
|
|
|
}
|