summaryrefslogtreecommitdiff
path: root/overlays
diff options
context:
space:
mode:
Diffstat (limited to 'overlays')
-rw-r--r--overlays/etesync-dav.nix61
-rw-r--r--overlays/prometheus-lvm-exporter.nix18
2 files changed, 79 insertions, 0 deletions
diff --git a/overlays/etesync-dav.nix b/overlays/etesync-dav.nix
new file mode 100644
index 00000000..49c77352
--- /dev/null
+++ b/overlays/etesync-dav.nix
@@ -0,0 +1,61 @@
1{ final, prev, sources, ... }: {
2 etesync-dav = let
3 python = final.python3.override {
4 packageOverrides = self: super: {
5 # flask-wtf = super.flask-wtf.overridePythonAttrs (old: rec {
6 # patches = [];
7 # version = "0.15.1";
8 # src = old.src.override {
9 # inherit version;
10 # sha256 = "ff177185f891302dc253437fe63081e7a46a4e99aca61dfe086fb23e54fff2dc";
11 # };
12 # disabledTests = [
13 # "test_outside_request"
14 # ];
15 # });
16 # wtforms = super.wtforms.overridePythonAttrs (old: rec {
17 # version = "2.3.3";
18 # src = old.src.override {
19 # inherit version;
20 # sha256 = "81195de0ac94fbc8368abbaf9197b88c4f3ffd6c2719b5bf5fc9da744f3d829c";
21 # };
22 # checkPhase = ''
23 # ${self.python.interpreter} tests/runtests.py
24 # '';
25 # });
26 etebase = super.wtforms.overridePythonAttrs (old: rec {
27 inherit (sources.etebase-py) version src;
28 });
29 };
30 };
31 in python.pkgs.buildPythonApplication rec {
32 pname = "etesync-dav";
33 version = "0.32.1";
34
35 src = python.pkgs.fetchPypi {
36 inherit pname version;
37 sha256 = "a4e2ee83932755d29ac39c1e74005ec289880fd2d4d2164f09fe2464a294d720";
38 };
39
40 propagatedBuildInputs = with python.pkgs; [
41 appdirs
42 etebase
43 etesync
44 flask
45 flask-wtf
46 msgpack
47 pysocks
48 (python.pkgs.toPythonModule (final.radicale3.override { python3 = python; }))
49 requests
50 ] ++ requests.optional-dependencies.socks;
51
52 doCheck = false;
53
54 meta = with final.lib; {
55 homepage = "https://www.etesync.com/";
56 description = "Secure, end-to-end encrypted, and privacy respecting sync for contacts, calendars and tasks";
57 license = licenses.gpl3;
58 broken = final.stdenv.isDarwin; # pyobjc-framework-Cocoa is missing
59 };
60 };
61}
diff --git a/overlays/prometheus-lvm-exporter.nix b/overlays/prometheus-lvm-exporter.nix
new file mode 100644
index 00000000..ead1e820
--- /dev/null
+++ b/overlays/prometheus-lvm-exporter.nix
@@ -0,0 +1,18 @@
1{ final, prev, sources, ... }: {
2 prometheus-lvm-exporter = final.buildGoModule {
3 pname = "prometheus-lvm-exporter";
4 inherit (sources.prometheus-lvm-exporter) version src;
5
6 vendorHash = "sha256-DyvUM3pP2P1IGfXKpkR5Y4CVcnSBsnNy0kd3WTjbWpg=";
7
8 doCheck = false;
9
10 nativeBuildInputs = with final; [ makeWrapper ];
11
12 postInstall = ''
13 wrapProgram $out/bin/prometheus-lvm-exporter \
14 --set LC_ALL C \
15 --add-flags -command --add-flags ${final.lvm2.bin}/bin/lvm
16 '';
17 };
18}