Merge master into staging-next

This commit is contained in:
Frederik Rietdijk
2020-02-10 12:55:47 +01:00
154 changed files with 3373 additions and 1173 deletions

View File

@@ -5,11 +5,11 @@
stdenv.mkDerivation rec {
pname = "atlassian-jira";
version = "8.6.0";
version = "8.7.0";
src = fetchurl {
url = "https://product-downloads.atlassian.com/software/jira/downloads/atlassian-jira-software-${version}.tar.gz";
sha256 = "091vcr0hvrrm9zjqs67ai5mkx7b8ybpwqpdxy7jw5z3994rdx3xw";
sha256 = "0k3z4j5pp0xx8qq5clr3069449w5k43gzag60jv3dzq35586yvdi";
};
buildPhase = ''

View File

@@ -0,0 +1,61 @@
diff --git a/app.php b/app.php
index 5f91e4d..09c6010 100644
--- a/app.php
+++ b/app.php
@@ -23,7 +23,7 @@ else
require_once __DIR__ . '/vendor/autoload.php';
// Load config files
-require_once GROCY_DATAPATH . '/config.php';
+require_once getenv('GROCY_CONFIG_FILE');
require_once __DIR__ . '/config-dist.php'; // For not in own config defined values we use the default ones
// Definitions for dev/demo/prerelease mode
@@ -49,7 +49,7 @@ $appContainer = new \Slim\Container([
],
'view' => function($container)
{
- return new \Slim\Views\Blade(__DIR__ . '/views', GROCY_DATAPATH . '/viewcache');
+ return new \Slim\Views\Blade(__DIR__ . '/views', getenv('GROCY_CACHE_DIR'));
},
'LoginControllerInstance' => function($container)
{
diff --git a/services/DatabaseService.php b/services/DatabaseService.php
index 0bcf9b8..ec45e93 100644
--- a/services/DatabaseService.php
+++ b/services/DatabaseService.php
@@ -13,7 +13,7 @@ class DatabaseService
return GROCY_DATAPATH . '/grocy_' . GROCY_CULTURE . '.db';
}
- return GROCY_DATAPATH . '/grocy.db';
+ return getenv('GROCY_DB_FILE');
}
private $DbConnectionRaw;
diff --git a/services/FilesService.php b/services/FilesService.php
index 7933b73..f52657e 100644
--- a/services/FilesService.php
+++ b/services/FilesService.php
@@ -12,7 +12,7 @@ class FilesService extends BaseService
{
parent::__construct();
- $this->StoragePath = GROCY_DATAPATH . '/storage';
+ $this->StoragePath = getenv('GROCY_STORAGE_DIR');
if (!file_exists($this->StoragePath))
{
diff --git a/services/StockService.php b/services/StockService.php
index d7482ef..d1399a7 100644
--- a/services/StockService.php
+++ b/services/StockService.php
@@ -933,7 +933,7 @@ class StockService extends BaseService
throw new \Exception('No barcode lookup plugin defined');
}
- $path = GROCY_DATAPATH . "/plugins/$pluginName.php";
+ $path = getenv('GROCY_PLUGIN_DIR');
if (file_exists($path))
{
require_once $path;

View File

@@ -0,0 +1,32 @@
{ stdenv, fetchurl, unzip }:
stdenv.mkDerivation rec {
pname = "grocy";
version = "2.6.0";
src = fetchurl {
url = "https://github.com/grocy/grocy/releases/download/v${version}/grocy_${version}.zip";
sha256 = "1d4hy495in7p0i4fnhai1yqhjhmblv1g30siggmqpjrzdiiw3bak";
};
nativeBuildInputs = [ unzip ];
unpackPhase = ''
unzip ${src} -d .
'';
patches = [ ./config-locations.patch ];
dontBuild = true;
installPhase = ''
mkdir -p $out/
cp -R . $out/
'';
meta = with stdenv.lib; {
license = licenses.mit;
maintainers = with maintainers; [ ma27 ];
description = "ERP beyond your fridge - grocy is a web-based self-hosted groceries & household management solution for your home";
homepage = "https://grocy.info/";
};
}

View File

@@ -0,0 +1,116 @@
{ stdenv, perl, fetchFromGitHub, autoreconfHook
}:
let
dataDir = "/var/lib/sympa";
runtimeDir = "/run/sympa";
perlEnv = perl.withPackages (p: with p; [
ArchiveZip
CGI
CGIFast
ClassSingleton
DateTime
DBI
DateTimeFormatMail
DateTimeTimeZone
DigestMD5
Encode
FCGI
FileCopyRecursive
FileNFSLock
FilePath
HTMLParser
HTMLFormatter
HTMLTree
HTMLStripScriptsParser
IO
IOStringy
LWP
libintl_perl
MHonArc
MIMEBase64
MIMECharset
MIMETools
MIMEEncWords
MIMELiteHTML
MailTools
NetCIDR
ScalarListUtils
SysSyslog
TermProgressBar
TemplateToolkit
URI
UnicodeLineBreak
XMLLibXML
### Features
Clone
CryptEksblowfish
DBDPg
DBDSQLite
DBDmysql
DataPassword
EncodeLocale
IOSocketSSL
MailDKIM
NetDNS
NetLDAP
NetSMTP
SOAPLite
]);
in
stdenv.mkDerivation rec {
pname = "sympa";
version = "6.2.52";
src = fetchFromGitHub {
owner = "sympa-community";
repo = pname;
rev = version;
sha256 = "071kx6ryifs2f6fhfky9g297frzp5584kn444af1vb2imzydsbnh";
};
configureFlags = [
"--without-initdir"
"--without-unitsdir"
"--without-smrshdir"
"--with-lockdir=${runtimeDir}"
"--with-piddir=${runtimeDir}"
"--with-confdir=${dataDir}/etc"
"--sysconfdir=${dataDir}/etc"
"--with-spooldir=${dataDir}/spool"
"--with-expldir=${dataDir}/list_data"
];
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ perlEnv ];
patches = [ ./make-docs.patch ];
prePatch = ''
patchShebangs po/sympa/add-lang.pl
'';
preInstall = ''
mkdir "$TMP/bin"
for i in chown chgrp chmod; do
echo '#!${stdenv.shell}' >> "$TMP/bin/$i"
chmod +x "$TMP/bin/$i"
done
PATH="$TMP/bin:$PATH"
'';
postInstall = ''
rm -rf "$TMP/bin"
'';
meta = with stdenv.lib; {
description = "Open source mailing list manager";
homepage = "https://www.sympa.org";
license = licenses.gpl2;
maintainers = with maintainers; [ sorki mmilata ];
platforms = platforms.all;
};
}

View File

@@ -0,0 +1,11 @@
diff -ur sympa-6.2.44-orig/doc/Makefile.am sympa-6.2.44/doc/Makefile.am
--- sympa-6.2.44-orig/doc/Makefile.am 2019-08-29 01:57:43.512539087 +0200
+++ sympa-6.2.44/doc/Makefile.am 2019-08-29 01:58:24.393531358 +0200
@@ -83,6 +83,4 @@
--lax --release="$(VERSION)" $< $@
.podpl.pod:
- $(AM_V_GEN)PERL5LIB=$(top_builddir)/src/lib:$(top_srcdir)/src/lib; \
- export PERL5LIB; \
- $(PERL) $< --top_srcdir=$(top_srcdir) > $*.pod
+ $(AM_V_GEN)$(PERL) -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib $< --top_srcdir=$(top_srcdir) > $*.pod

View File

@@ -1,4 +1,4 @@
{stdenv, fetchurl, cyrus_sasl, libevent}:
{stdenv, fetchurl, fetchpatch, cyrus_sasl, libevent}:
stdenv.mkDerivation rec {
version = "1.5.21";
@@ -9,6 +9,16 @@ stdenv.mkDerivation rec {
sha256 = "1x4jzrz09aq4nllkarn7d5x77gsys5l3nvfj8c7j4nvmvc30rlg3";
};
patches = [
# Fixes compilation error on Darwin due to redeclaration of
# htonll. The fix should appear in 1.5.23.
# https://github.com/memcached/memcached/issues/598
(fetchpatch {
url = "https://github.com/memcached/memcached/commit/95c67710aaf5cfe188d94b510faef8c66d6f5604.diff";
sha256 = "0ab5l24p4n4fpx78ilmg7jvs9nl84pdza90jbpbx3ns5n23pqbfs";
})
];
configureFlags = [
"ac_cv_c_endian=${if stdenv.hostPlatform.isBigEndian then "big" else "little"}"
];