mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
4d51d5c799
Fixes CVE-2024-28709, CVE-2024-28710 and CVE-2024-42903. Changes: https://github.com/LimeSurvey/LimeSurvey/blob/6.6.5%2B240924/docs/release_notes.txt
42 lines
941 B
Nix
42 lines
941 B
Nix
{ lib, stdenv, fetchFromGitHub, writeText, nixosTests }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "limesurvey";
|
|
version = "6.6.5+240924";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "LimeSurvey";
|
|
repo = "LimeSurvey";
|
|
rev = version;
|
|
hash = "sha256-CuuTFCDY7jnF2njZdyB6e8/nRf0n0ybKgZ0QscC2IAI=";
|
|
};
|
|
|
|
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
|
|
'';
|
|
|
|
passthru.tests = {
|
|
smoke-test = nixosTests.limesurvey;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Open source survey application";
|
|
license = licenses.gpl2Plus;
|
|
homepage = "https://www.limesurvey.org";
|
|
maintainers = with maintainers; [offline];
|
|
platforms = with platforms; unix;
|
|
};
|
|
}
|