ethercalc: init at latest master (b19627)
This commit is contained in:
parent
927839fdcb
commit
92eb5bc48e
|
@ -169,6 +169,13 @@
|
||||||
<link linkend="opt-services.prosody-filer.enable">services.prosody-filer</link>.
|
<link linkend="opt-services.prosody-filer.enable">services.prosody-filer</link>.
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
<link xlink:href="https://github.com/audreyt/ethercalc">ethercalc</link>,
|
||||||
|
an online collaborative spreadsheet. Available as
|
||||||
|
<link xlink:href="options.html#opt-services.ethercalc.enable">services.ethercalc</link>.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
<link xlink:href="https://timetagger.app">timetagger</link>,
|
<link xlink:href="https://timetagger.app">timetagger</link>,
|
||||||
|
|
|
@ -51,6 +51,9 @@ In addition to numerous new and upgraded packages, this release has the followin
|
||||||
|
|
||||||
- [prosody-filer](https://github.com/ThomasLeister/prosody-filer), a server for handling XMPP HTTP Upload requests. Available at [services.prosody-filer](#opt-services.prosody-filer.enable).
|
- [prosody-filer](https://github.com/ThomasLeister/prosody-filer), a server for handling XMPP HTTP Upload requests. Available at [services.prosody-filer](#opt-services.prosody-filer.enable).
|
||||||
|
|
||||||
|
- [ethercalc](https://github.com/audreyt/ethercalc), an online collaborative
|
||||||
|
spreadsheet. Available as [services.ethercalc](options.html#opt-services.ethercalc.enable).
|
||||||
|
|
||||||
- [timetagger](https://timetagger.app), an open source time-tracker with an intuitive user experience and powerful reporting. [services.timetagger](options.html#opt-services.timetagger.enable).
|
- [timetagger](https://timetagger.app), an open source time-tracker with an intuitive user experience and powerful reporting. [services.timetagger](options.html#opt-services.timetagger.enable).
|
||||||
|
|
||||||
- [rstudio-server](https://www.rstudio.com/products/rstudio/#rstudio-server), a browser-based version of the RStudio IDE for the R programming language. Available as [services.rstudio-server](options.html#opt-services.rstudio-server.enable).
|
- [rstudio-server](https://www.rstudio.com/products/rstudio/#rstudio-server), a browser-based version of the RStudio IDE for the R programming language. Available as [services.rstudio-server](options.html#opt-services.rstudio-server.enable).
|
||||||
|
|
|
@ -1005,6 +1005,7 @@
|
||||||
./services/web-apps/documize.nix
|
./services/web-apps/documize.nix
|
||||||
./services/web-apps/dokuwiki.nix
|
./services/web-apps/dokuwiki.nix
|
||||||
./services/web-apps/engelsystem.nix
|
./services/web-apps/engelsystem.nix
|
||||||
|
./services/web-apps/ethercalc.nix
|
||||||
./services/web-apps/fluidd.nix
|
./services/web-apps/fluidd.nix
|
||||||
./services/web-apps/galene.nix
|
./services/web-apps/galene.nix
|
||||||
./services/web-apps/gerrit.nix
|
./services/web-apps/gerrit.nix
|
||||||
|
|
62
nixos/modules/services/web-apps/ethercalc.nix
Normal file
62
nixos/modules/services/web-apps/ethercalc.nix
Normal file
|
@ -0,0 +1,62 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.services.ethercalc;
|
||||||
|
in {
|
||||||
|
options = {
|
||||||
|
services.ethercalc = {
|
||||||
|
enable = mkOption {
|
||||||
|
default = false;
|
||||||
|
type = types.bool;
|
||||||
|
description = ''
|
||||||
|
ethercalc, an online collaborative spreadsheet server.
|
||||||
|
|
||||||
|
Persistent state will be maintained under
|
||||||
|
<filename>/var/lib/ethercalc</filename>. Upstream supports using a
|
||||||
|
redis server for storage and recommends the redis backend for
|
||||||
|
intensive use; however, the Nix module doesn't currently support
|
||||||
|
redis.
|
||||||
|
|
||||||
|
Note that while ethercalc is a good and robust project with an active
|
||||||
|
issue tracker, there haven't been new commits since the end of 2020.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
package = mkOption {
|
||||||
|
default = pkgs.ethercalc;
|
||||||
|
defaultText = literalExpression "pkgs.ethercalc";
|
||||||
|
type = types.package;
|
||||||
|
description = "Ethercalc package to use.";
|
||||||
|
};
|
||||||
|
|
||||||
|
host = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "0.0.0.0";
|
||||||
|
description = "Address to listen on (use 0.0.0.0 to allow access from any address).";
|
||||||
|
};
|
||||||
|
|
||||||
|
port = mkOption {
|
||||||
|
type = types.port;
|
||||||
|
default = 8000;
|
||||||
|
description = "Port to bind to.";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
systemd.services.ethercalc = {
|
||||||
|
description = "Ethercalc service";
|
||||||
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
after = [ "network.target" ];
|
||||||
|
serviceConfig = {
|
||||||
|
DynamicUser = true;
|
||||||
|
ExecStart = "${cfg.package}/bin/ethercalc --host ${cfg.host} --port ${toString cfg.port}";
|
||||||
|
Restart = "always";
|
||||||
|
StateDirectory = "ethercalc";
|
||||||
|
WorkingDirectory = "/var/lib/ethercalc";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
27
pkgs/servers/web-apps/ethercalc/default.nix
Normal file
27
pkgs/servers/web-apps/ethercalc/default.nix
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
{ stdenv
|
||||||
|
, pkgs
|
||||||
|
, lib
|
||||||
|
, nodejs-14_x
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
nodejs = nodejs-14_x;
|
||||||
|
|
||||||
|
nodePackages = import ./node-packages.nix {
|
||||||
|
inherit pkgs nodejs;
|
||||||
|
inherit (stdenv.hostPlatform) system;
|
||||||
|
};
|
||||||
|
|
||||||
|
ethercalc = lib.head (lib.attrValues nodePackages);
|
||||||
|
|
||||||
|
combined = ethercalc.override {
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Online collaborative spreadsheet";
|
||||||
|
license = with licenses; [ cpal10 artistic2 mit asl20 cc0 mpl20 ];
|
||||||
|
homepage = "https://github.com/audreyt/ethercalc";
|
||||||
|
maintainers = with maintainers; [ iblech ];
|
||||||
|
platforms = platforms.unix;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
in
|
||||||
|
combined
|
15
pkgs/servers/web-apps/ethercalc/generate.sh
Executable file
15
pkgs/servers/web-apps/ethercalc/generate.sh
Executable file
|
@ -0,0 +1,15 @@
|
||||||
|
#!/usr/bin/env nix-shell
|
||||||
|
#! nix-shell -i bash -p nodePackages.node2nix
|
||||||
|
|
||||||
|
# Run this script not via `./generate.sh`, but via `$PWD/generate.sh`.
|
||||||
|
# Else `nix-shell` will not find this script.
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
cd -- "$(dirname -- "$BASH_SOURCE[0]")"
|
||||||
|
|
||||||
|
node2nix \
|
||||||
|
--input node-packages.json \
|
||||||
|
--output node-packages-generated.nix \
|
||||||
|
--composition node-packages.nix \
|
||||||
|
--node-env ../../../development/node-packages/node-env.nix
|
2086
pkgs/servers/web-apps/ethercalc/node-packages-generated.nix
Normal file
2086
pkgs/servers/web-apps/ethercalc/node-packages-generated.nix
Normal file
File diff suppressed because it is too large
Load diff
3
pkgs/servers/web-apps/ethercalc/node-packages.json
Normal file
3
pkgs/servers/web-apps/ethercalc/node-packages.json
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[
|
||||||
|
{ "whitebophir": "git+https://github.com/audreyt/ethercalc.git#b196277081d677be991d104e454a52d242ef0189" }
|
||||||
|
]
|
17
pkgs/servers/web-apps/ethercalc/node-packages.nix
generated
Normal file
17
pkgs/servers/web-apps/ethercalc/node-packages.nix
generated
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
# This file has been generated by node2nix 1.9.0. Do not edit!
|
||||||
|
|
||||||
|
{pkgs ? import <nixpkgs> {
|
||||||
|
inherit system;
|
||||||
|
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-12_x"}:
|
||||||
|
|
||||||
|
let
|
||||||
|
nodeEnv = import ../../../development/node-packages/node-env.nix {
|
||||||
|
inherit (pkgs) stdenv lib python2 runCommand writeTextFile writeShellScript;
|
||||||
|
inherit pkgs nodejs;
|
||||||
|
libtool = if pkgs.stdenv.isDarwin then pkgs.darwin.cctools else null;
|
||||||
|
};
|
||||||
|
in
|
||||||
|
import ./node-packages-generated.nix {
|
||||||
|
inherit (pkgs) fetchurl nix-gitignore stdenv lib fetchgit;
|
||||||
|
inherit nodeEnv;
|
||||||
|
}
|
|
@ -5131,6 +5131,8 @@ with pkgs;
|
||||||
electron = electron_14;
|
electron = electron_14;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ethercalc = callPackage ../servers/web-apps/ethercalc { };
|
||||||
|
|
||||||
ethtool = callPackage ../tools/misc/ethtool { };
|
ethtool = callPackage ../tools/misc/ethtool { };
|
||||||
|
|
||||||
ettercap = callPackage ../applications/networking/sniffers/ettercap { };
|
ettercap = callPackage ../applications/networking/sniffers/ettercap { };
|
||||||
|
|
Loading…
Reference in a new issue