mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-25 02:25:23 +00:00
fix(nix): clean up
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
(forUnixSystems (
|
||||
{ system, pkgs }:
|
||||
{
|
||||
workflows = pkgs.callPackage ./nix/workflows { };
|
||||
workflows = pkgs.callPackage ./nix/workflows { inherit self; };
|
||||
nocodb = pkgs.callPackage ./nix/package.nix {
|
||||
version = if self ? shortRev then self.shortRev else self.dirtyShortRev;
|
||||
};
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
writeTextDir,
|
||||
}:
|
||||
writeTextDir "etc/valkey.conf" ''
|
||||
# disable tcp
|
||||
port 0
|
||||
bind 127.0.0.1
|
||||
# disable tcp
|
||||
port 0
|
||||
bind 127.0.0.1
|
||||
|
||||
# enable unixsocket
|
||||
unixsocket /run/valkey/valkey.sock
|
||||
unixsocketperm 777
|
||||
# enable unixsocket
|
||||
unixsocket /run/valkey/valkey.sock
|
||||
unixsocketperm 777
|
||||
''
|
||||
|
||||
@@ -11,7 +11,7 @@ let
|
||||
inherit (pkgs.stdenv.hostPlatform) system;
|
||||
|
||||
defaultEnvs = {
|
||||
DATABASE_URL="sqlite:///%S/nocodb/sqlite.db";
|
||||
DATABASE_URL = "sqlite:///%S/nocodb/sqlite.db";
|
||||
};
|
||||
in
|
||||
{
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
docker,
|
||||
nix,
|
||||
sops,
|
||||
self,
|
||||
}:
|
||||
writeShellApplication {
|
||||
name = "aiopusher";
|
||||
@@ -32,7 +33,7 @@ writeShellApplication {
|
||||
package="packages.$1.docker_aio"
|
||||
note "updating $image:$2 with $package"
|
||||
|
||||
nix build .#packages.x86_64-linux.docker_aio -L
|
||||
nix build "${self}#packages.x86_64-linux.docker_aio" -L
|
||||
tag="$(docker image load -i result | tail -n1 | cut -d: -f3)"
|
||||
id="$(docker image ls --format "{{.ID}}:{{.Tag}}" | grep "$tag" | cut -d: -f1)"
|
||||
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
{
|
||||
callPackage,
|
||||
lib,
|
||||
self,
|
||||
}:
|
||||
lib.attrsets.mapAttrs (key: _: callPackage ./${key} { }) (
|
||||
lib.attrsets.filterAttrs (key: _: key != "default.nix") (builtins.readDir ./.)
|
||||
)
|
||||
{
|
||||
aiopusher = callPackage ./aiopusher { inherit self; };
|
||||
bumper = callPackage ./bumper { };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user