8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
37 lines
865 B
Nix
37 lines
865 B
Nix
{ stdenv, fetchFromGitHub, writeText }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "limesurvey";
|
|
version = "3.17.12+190823";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "LimeSurvey";
|
|
repo = "LimeSurvey";
|
|
rev = version;
|
|
sha256 = "1i7jpxndrbya5ggl4babscwzmxx4c0jwri5kpl7h2ihqrn90m4b5";
|
|
};
|
|
|
|
phpConfig = writeText "config.php" ''
|
|
<?php
|
|
return require(getenv('LIMESURVEY_CONFIG'));
|
|
?>
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/share/limesurvey
|
|
cp -r . $out/share/limesurvey
|
|
cp ${phpConfig} $out/share/limesurvey/application/config/config.php
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Open source survey application";
|
|
license = licenses.gpl2;
|
|
homepage = "https://www.limesurvey.org";
|
|
maintainers = with maintainers; [offline];
|
|
platforms = with platforms; unix;
|
|
};
|
|
}
|