diff options
author | Aaron Andersen <aaron@fosslib.net> | 2019-03-13 21:43:50 -0400 |
---|---|---|
committer | Aaron Andersen <aaron@fosslib.net> | 2019-05-23 21:43:08 -0400 |
commit | d8fd3cf6028a99c100476a346fe6010dc711a0cb (patch) | |
tree | 87d9b9666ee188d40b82c6eb817aee7d84cacf8a /pkgs/servers/limesurvey | |
parent | fc49f75f63619ab3c4a948aac0b642172ecc60ab (diff) |
limesurvey: drop php command from package, simplify directory structure
Diffstat (limited to 'pkgs/servers/limesurvey')
-rw-r--r-- | pkgs/servers/limesurvey/default.nix | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/pkgs/servers/limesurvey/default.nix b/pkgs/servers/limesurvey/default.nix index d9113ca2c4ca..ad1038bbc47f 100644 --- a/pkgs/servers/limesurvey/default.nix +++ b/pkgs/servers/limesurvey/default.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, fetchFromGitHub, writeText, makeWrapper, php }: +{ stdenv, fetchFromGitHub, writeText }: stdenv.mkDerivation rec { pname = "limesurvey"; @@ -11,8 +11,6 @@ stdenv.mkDerivation rec { sha256 = "0d6dgw9af492vn5yg2hq82ipq4p80c19lhky0dpwrm5kv67kxbhv"; }; - buildInputs = [ makeWrapper ]; - phpConfig = writeText "config.php" '' <?php return require(getenv('LIMESURVEY_CONFIG')); @@ -20,17 +18,15 @@ stdenv.mkDerivation rec { ''; installPhase = '' - mkdir -p $out/{bin,share/limesurvey} - cp -R . $out/share/limesurvey + mkdir -p $out/share/limesurvey + cp -r . $out/share/limesurvey cp ${phpConfig} $out/share/limesurvey/application/config/config.php - makeWrapper ${php}/bin/php $out/bin/limesurvey-console \ - --add-flags "$out/share/limesurvey/application/commands/console.php" ''; - meta = with lib; { + meta = with stdenv.lib; { description = "Open source survey application"; license = licenses.gpl2; - homepage = https://www.limesurvey.org; + homepage = "https://www.limesurvey.org"; maintainers = with maintainers; [offline]; platforms = with platforms; unix; }; |