Service Organizr

This commit is contained in:
nyanloutre 2018-04-26 19:22:56 +02:00
parent 00dff10334
commit 2a03714100
2 changed files with 27 additions and 4 deletions

26
organizr.nix Normal file
View File

@ -0,0 +1,26 @@
with import <nixpkgs> {};
stdenv.mkDerivation rec {
name = "organizr-${version}";
version = "1.75";
src = fetchFromGitHub {
owner = "causefx";
repo = "Organizr";
rev = version;
sha256 = "13h6cgqq3gyg5d3ikj7k85igpg6al7y9xdsxammkr8y5dzfbkm36";
};
installPhase = ''
mkdir -p $out/
cp -R . $out/
ln -s /var/lib/organizr/config.php $out/config/config.php
'';
meta = {
description = "Organizr dashboard";
homepage = https://github.com/causefx/Organizr;
license = stdenv.lib.licenses.gpl3;
platforms = stdenv.lib.platforms.all;
};
}

View File

@ -121,10 +121,7 @@ in
"organizr" = {
listen = [ { addr = "127.0.0.1"; port = organizr_port; } ];
locations."/" = {
root = (builtins.fetchTarball {
url = "https://github.com/causefx/Organizr/archive/1.75.tar.gz";
sha256 = "13h6cgqq3gyg5d3ikj7k85igpg6al7y9xdsxammkr8y5dzfbkm36";
});
root = (import ./organizr.nix);
index = "index.php";
extraConfig = ''
location ~* \.php$ {