Merge staging-next-21.05 into staging-21.05
This commit is contained in:
commit
9860c61f4f
@ -40,7 +40,7 @@ import ./make-test-python.nix ({ pkgs, ... }: {
|
|||||||
|
|
||||||
assert task_name == "Test Task"
|
assert task_name == "Test Task"
|
||||||
|
|
||||||
machine.succeed("curl -sSfI http://localhost/api/tasks 2>&1 | grep '401 Unauthorized'")
|
machine.succeed("curl -sSI http://localhost/api/tasks 2>&1 | grep '401 Unauthorized'")
|
||||||
|
|
||||||
machine.shutdown()
|
machine.shutdown()
|
||||||
'';
|
'';
|
||||||
|
@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "hugo";
|
pname = "hugo";
|
||||||
version = "0.84.2";
|
version = "0.84.4";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "gohugoio";
|
owner = "gohugoio";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-NE4vXtczzcL5f0/aDYeGnleBwsDBTzojSaek/LzowFo=";
|
sha256 = "sha256-nD2UBDSDG6OFfUvDBXCfhOCiJyFMP2pDXSlIESaEfqE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorSha256 = "sha256-ImXTOtN6kQL7Q8IBlmK7+i47cWtyZT0xcnQdCw3NvWM=";
|
vendorSha256 = "sha256-ImXTOtN6kQL7Q8IBlmK7+i47cWtyZT0xcnQdCw3NvWM=";
|
||||||
|
@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "ipfs";
|
pname = "ipfs";
|
||||||
version = "0.9.0";
|
version = "0.9.1";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
|
|
||||||
# go-ipfs makes changes to it's source tarball that don't match the git source.
|
# go-ipfs makes changes to it's source tarball that don't match the git source.
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/ipfs/go-ipfs/releases/download/${rev}/go-ipfs-source.tar.gz";
|
url = "https://github.com/ipfs/go-ipfs/releases/download/${rev}/go-ipfs-source.tar.gz";
|
||||||
sha256 = "sha256:1fyffnw1d860w7gwm6ijbgrh68297z5bmvww8yqfshm3xgvcs6bf";
|
sha256 = "sha256-RliyIEtNgwzbLVwl6T38VIbhc12CZMBc3LZ6T/llaHc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# tarball contains multiple files/directories
|
# tarball contains multiple files/directories
|
||||||
@ -29,10 +29,13 @@ buildGoModule rec {
|
|||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
install --mode=444 -D misc/systemd/ipfs.service $out/etc/systemd/system/ipfs.service
|
install --mode=444 -D misc/systemd/ipfs.service $out/etc/systemd/system/ipfs.service
|
||||||
|
install --mode=444 -D misc/systemd/ipfs-hardened.service $out/etc/systemd/system/ipfs-hardened.service
|
||||||
install --mode=444 -D misc/systemd/ipfs-api.socket $out/etc/systemd/system/ipfs-api.socket
|
install --mode=444 -D misc/systemd/ipfs-api.socket $out/etc/systemd/system/ipfs-api.socket
|
||||||
install --mode=444 -D misc/systemd/ipfs-gateway.socket $out/etc/systemd/system/ipfs-gateway.socket
|
install --mode=444 -D misc/systemd/ipfs-gateway.socket $out/etc/systemd/system/ipfs-gateway.socket
|
||||||
substituteInPlace $out/etc/systemd/system/ipfs.service \
|
substituteInPlace $out/etc/systemd/system/ipfs.service \
|
||||||
--replace /usr/bin/ipfs $out/bin/ipfs
|
--replace /usr/bin/ipfs $out/bin/ipfs
|
||||||
|
substituteInPlace $out/etc/systemd/system/ipfs-hardened.service \
|
||||||
|
--replace /usr/bin/ipfs $out/bin/ipfs
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
@ -179,6 +179,7 @@ let
|
|||||||
snapshotting, cloning, block devices, deduplication, and more.
|
snapshotting, cloning, block devices, deduplication, and more.
|
||||||
'';
|
'';
|
||||||
homepage = "https://github.com/openzfs/zfs";
|
homepage = "https://github.com/openzfs/zfs";
|
||||||
|
changelog = "https://github.com/openzfs/zfs/releases/tag/zfs-${version}";
|
||||||
license = licenses.cddl;
|
license = licenses.cddl;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
maintainers = with maintainers; [ hmenke jcumming jonringer wizeman fpletz globin mic92 ];
|
maintainers = with maintainers; [ hmenke jcumming jonringer wizeman fpletz globin mic92 ];
|
||||||
@ -203,12 +204,12 @@ in {
|
|||||||
|
|
||||||
zfsUnstable = common {
|
zfsUnstable = common {
|
||||||
# check the release notes for compatible kernels
|
# check the release notes for compatible kernels
|
||||||
kernelCompatible = kernel.kernelAtLeast "3.10" && kernel.kernelOlder "5.13";
|
kernelCompatible = kernel.kernelAtLeast "3.10" && kernel.kernelOlder "5.14";
|
||||||
|
|
||||||
# this package should point to a version / git revision compatible with the latest kernel release
|
# this package should point to a version / git revision compatible with the latest kernel release
|
||||||
version = "2.1.0-rc5";
|
version = "2.1.0";
|
||||||
|
|
||||||
sha256 = "sha256-cj0P2bw6sTO+Y74pYn/WEpBuVGMMYCreJQjUdC3DMTE=";
|
sha256 = "sha256-YdY4SStXZGBBdAHdM3R/unco7ztxI3s0/buPSNSeh5o=";
|
||||||
|
|
||||||
isUnstable = true;
|
isUnstable = true;
|
||||||
};
|
};
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
From 7ed6c641cc501246931721700b73f40dce7e8f4b Mon Sep 17 00:00:00 2001
|
From 035709eeac697945a26276cc17b996c1a0678ddc Mon Sep 17 00:00:00 2001
|
||||||
From: Maximilian Bosch <maximilian@mbosch.me>
|
From: Maximilian Bosch <maximilian@mbosch.me>
|
||||||
Date: Tue, 22 Dec 2020 15:38:56 +0100
|
Date: Tue, 22 Dec 2020 15:38:56 +0100
|
||||||
Subject: [PATCH 1/2] Define configs with env vars
|
Subject: [PATCH] Define configs with env vars
|
||||||
|
|
||||||
---
|
---
|
||||||
app.php | 4 ++--
|
app.php | 4 ++--
|
||||||
@ -11,32 +11,32 @@ Subject: [PATCH 1/2] Define configs with env vars
|
|||||||
4 files changed, 5 insertions(+), 6 deletions(-)
|
4 files changed, 5 insertions(+), 6 deletions(-)
|
||||||
|
|
||||||
diff --git a/app.php b/app.php
|
diff --git a/app.php b/app.php
|
||||||
index 8176ebe..04432ba 100644
|
index 17ba6a99..89f48089 100644
|
||||||
--- a/app.php
|
--- a/app.php
|
||||||
+++ b/app.php
|
+++ b/app.php
|
||||||
@@ -10,7 +10,7 @@ use Slim\Factory\AppFactory;
|
@@ -11,7 +11,7 @@ use Slim\Views\Blade;
|
||||||
require_once __DIR__ . '/vendor/autoload.php';
|
require_once __DIR__ . '/vendor/autoload.php';
|
||||||
|
|
||||||
// Load config files
|
// Load config files
|
||||||
-require_once GROCY_DATAPATH . '/config.php';
|
-require_once GROCY_DATAPATH . '/config.php';
|
||||||
+require_once getenv('GROCY_CONFIG_FILE');
|
+require_once getenv('GROCY_CONFIG_FILE');
|
||||||
require_once __DIR__ . '/config-dist.php'; // For not in own config defined values we use the default ones
|
require_once __DIR__ . '/config-dist.php'; // For not in own config defined values we use the default ones
|
||||||
|
require_once __DIR__ . '/helpers/ConfigurationValidator.php';
|
||||||
|
|
||||||
// Definitions for dev/demo/prerelease mode
|
@@ -62,7 +62,7 @@ $app = AppFactory::create();
|
||||||
@@ -37,7 +37,7 @@ $app = AppFactory::create();
|
|
||||||
|
|
||||||
$container = $app->getContainer();
|
$container = $app->getContainer();
|
||||||
$container->set('view', function (Container $container) {
|
$container->set('view', function (Container $container) {
|
||||||
- return new Slim\Views\Blade(__DIR__ . '/views', GROCY_DATAPATH . '/viewcache');
|
- return new Blade(__DIR__ . '/views', GROCY_DATAPATH . '/viewcache');
|
||||||
+ return new Slim\Views\Blade(__DIR__ . '/views', getenv('GROCY_CACHE_DIR'));
|
+ return new Blade(__DIR__ . '/views', getenv('GROCY_CACHE_DIR'));
|
||||||
});
|
});
|
||||||
|
|
||||||
$container->set('UrlManager', function (Container $container) {
|
$container->set('UrlManager', function (Container $container) {
|
||||||
return new UrlManager(GROCY_BASE_URL);
|
|
||||||
diff --git a/services/DatabaseService.php b/services/DatabaseService.php
|
diff --git a/services/DatabaseService.php b/services/DatabaseService.php
|
||||||
index d1080b0..8bc4ee1 100644
|
index dfcd5d4b..bc8d1a1d 100644
|
||||||
--- a/services/DatabaseService.php
|
--- a/services/DatabaseService.php
|
||||||
+++ b/services/DatabaseService.php
|
+++ b/services/DatabaseService.php
|
||||||
@@ -105,6 +105,6 @@ class DatabaseService
|
@@ -107,6 +107,6 @@ class DatabaseService
|
||||||
return GROCY_DATAPATH . '/grocy_' . $dbSuffix . '.db';
|
return GROCY_DATAPATH . '/grocy_' . $dbSuffix . '.db';
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -45,23 +45,23 @@ index d1080b0..8bc4ee1 100644
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
diff --git a/services/FilesService.php b/services/FilesService.php
|
diff --git a/services/FilesService.php b/services/FilesService.php
|
||||||
index 8c1483e..8f74b4b 100644
|
index 7d070350..fba2e923 100644
|
||||||
--- a/services/FilesService.php
|
--- a/services/FilesService.php
|
||||||
+++ b/services/FilesService.php
|
+++ b/services/FilesService.php
|
||||||
@@ -70,7 +70,7 @@ class FilesService extends BaseService
|
@@ -103,7 +103,7 @@ class FilesService extends BaseService
|
||||||
{
|
|
||||||
parent::__construct();
|
|
||||||
|
|
||||||
- $this->StoragePath = GROCY_DATAPATH . '/storage';
|
public function GetFilePath($group, $fileName)
|
||||||
|
{
|
||||||
|
- $groupFolderPath = $this->StoragePath . '/' . $group;
|
||||||
+ $this->StoragePath = getenv('GROCY_STORAGE_DIR');
|
+ $this->StoragePath = getenv('GROCY_STORAGE_DIR');
|
||||||
|
|
||||||
if (!file_exists($this->StoragePath))
|
if (!file_exists($groupFolderPath))
|
||||||
{
|
{
|
||||||
diff --git a/services/StockService.php b/services/StockService.php
|
diff --git a/services/StockService.php b/services/StockService.php
|
||||||
index 4741b4b..6d4e748 100644
|
index f73ac5bd..6b6e693a 100644
|
||||||
--- a/services/StockService.php
|
--- a/services/StockService.php
|
||||||
+++ b/services/StockService.php
|
+++ b/services/StockService.php
|
||||||
@@ -1374,8 +1374,7 @@ class StockService extends BaseService
|
@@ -1589,8 +1589,7 @@ class StockService extends BaseService
|
||||||
throw new \Exception('No barcode lookup plugin defined');
|
throw new \Exception('No barcode lookup plugin defined');
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -72,5 +72,5 @@ index 4741b4b..6d4e748 100644
|
|||||||
{
|
{
|
||||||
require_once $path;
|
require_once $path;
|
||||||
--
|
--
|
||||||
2.29.2
|
2.31.1
|
||||||
|
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "grocy";
|
pname = "grocy";
|
||||||
version = "3.0.1";
|
version = "3.1.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/grocy/grocy/releases/download/v${version}/grocy_${version}.zip";
|
url = "https://github.com/grocy/grocy/releases/download/v${version}/grocy_${version}.zip";
|
||||||
sha256 = "sha256-Yjxv0LcLNtpYs4ntBano9NUxwdWgF5etA/M6hUVzOa8=";
|
sha256 = "sha256-ohviTI2np6z+SjV2CDScouI8Lh2Ru4+CE00KlgT40i8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ unzip ];
|
nativeBuildInputs = [ unzip ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user