Service Organizr
This commit is contained in:
parent
00dff10334
commit
2a03714100
26
organizr.nix
Normal file
26
organizr.nix
Normal 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;
|
||||
};
|
||||
}
|
@ -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$ {
|
||||
|
Loading…
Reference in New Issue
Block a user