uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
42
pkgs/servers/etebase/default.nix
Normal file
42
pkgs/servers/etebase/default.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ lib, fetchFromGitHub, buildPythonPackage, aioredis, aiofiles, django_3
|
||||
, fastapi, msgpack, pynacl, typing-extensions }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "etebase-server";
|
||||
version = "0.8.3";
|
||||
format = "other";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "etesync";
|
||||
repo = "server";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-rPs34uzb5veiOw74SACLrDm4Io0CYH9EL9IuV38CkPY=";
|
||||
};
|
||||
|
||||
patches = [ ./secret.patch ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aioredis
|
||||
aiofiles
|
||||
django_3
|
||||
fastapi
|
||||
msgpack
|
||||
pynacl
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin $out/lib
|
||||
cp -r . $out/lib/etebase-server
|
||||
ln -s $out/lib/etebase-server/manage.py $out/bin/etebase-server
|
||||
wrapProgram $out/bin/etebase-server --prefix PYTHONPATH : "$PYTHONPATH"
|
||||
chmod +x $out/bin/etebase-server
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/etesync/server";
|
||||
description = "An Etebase (EteSync 2.0) server so you can run your own.";
|
||||
license = licenses.agpl3Only;
|
||||
maintainers = with maintainers; [ felschr ];
|
||||
};
|
||||
}
|
||||
26
pkgs/servers/etebase/secret.patch
Normal file
26
pkgs/servers/etebase/secret.patch
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
diff --git a/etebase_server/settings.py b/etebase_server/settings.py
|
||||
index 9baf8d3..501d9f6 100644
|
||||
--- a/etebase_server/settings.py
|
||||
+++ b/etebase_server/settings.py
|
||||
@@ -23,11 +22,6 @@
|
||||
# Quick-start development settings - unsuitable for production
|
||||
# See https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/
|
||||
|
||||
-# SECURITY WARNING: keep the secret key used in production secret!
|
||||
-# See secret.py for how this is generated; uses a file 'secret.txt' in the root
|
||||
-# directory
|
||||
-SECRET_FILE = os.path.join(BASE_DIR, "secret.txt")
|
||||
-
|
||||
# SECURITY WARNING: don't run with debug turned on in production!
|
||||
DEBUG = True
|
||||
|
||||
@@ -143,7 +137,7 @@
|
||||
|
||||
section = config["global"]
|
||||
|
||||
- SECRET_FILE = section.get("secret_file", SECRET_FILE)
|
||||
+ SECRET_FILE = section.get("secret_file", None)
|
||||
STATIC_ROOT = section.get("static_root", STATIC_ROOT)
|
||||
STATIC_URL = section.get("static_url", STATIC_URL)
|
||||
MEDIA_ROOT = section.get("media_root", MEDIA_ROOT)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue