about summary refs log tree commit diff
path: root/pkgs/servers/mail
diff options
context:
space:
mode:
authorMarcel <me@m4rc3l.de>2024-03-01 10:47:33 +0100
committerMarcel <me@m4rc3l.de>2024-03-01 10:52:28 +0100
commit1d399850788fb5d313ccee1309ccdd5c20225831 (patch)
treec52ddadd14d878db1273d294ff0517c7a49146c2 /pkgs/servers/mail
parent896a4d62d8c7e36ef19e2d40b6cc26adcc89fe03 (diff)
listmonk: move to pkgs/by-name
Diffstat (limited to 'pkgs/servers/mail')
-rw-r--r--pkgs/servers/mail/listmonk/default.nix56
-rw-r--r--pkgs/servers/mail/listmonk/frontend.nix37
-rw-r--r--pkgs/servers/mail/listmonk/package.json45
-rw-r--r--pkgs/servers/mail/listmonk/stuffbin.nix25
4 files changed, 0 insertions, 163 deletions
diff --git a/pkgs/servers/mail/listmonk/default.nix b/pkgs/servers/mail/listmonk/default.nix
deleted file mode 100644
index 3ac3522a861e4..0000000000000
--- a/pkgs/servers/mail/listmonk/default.nix
+++ /dev/null
@@ -1,56 +0,0 @@
-{ lib, buildGoModule, fetchFromGitHub, callPackage, stuffbin, nixosTests }:
-
-buildGoModule rec {
-  pname = "listmonk";
-  version = "3.0.0";
-
-  src = fetchFromGitHub {
-    owner = "knadh";
-    repo = "listmonk";
-    rev = "v${version}";
-    sha256 = "sha256-eNX+2ens+mz2V8ZBHtFFHDVbi64AAiiREElMjh67Dd8=";
-  };
-
-  vendorHash = "sha256-XAm2VfX1nHWTuAV2COEn8qrqPNv0xbaWgTYCpjrEfMw=";
-
-  nativeBuildInputs = [
-    stuffbin
-  ];
-
-  ldflags = [ "-s" "-w" "-X main.version=${version}" ];
-
-  postInstall = ''
-    mv $out/bin/cmd $out/bin/listmonk
-  '';
-
-  # Run stuffbin to stuff the frontend and the static in the binary.
-  postFixup =
-    let
-      vfsMappings = [
-        "config.toml.sample"
-        "schema.sql"
-        "queries.sql"
-        "static/public:/public"
-        "static/email-templates"
-        "${passthru.frontend}:/admin"
-        "i18n:/i18n"
-      ];
-    in
-      ''
-        stuffbin -a stuff -in $out/bin/listmonk -out $out/bin/listmonk \
-          ${lib.concatStringsSep " " vfsMappings}
-      '';
-
-  passthru = {
-    frontend = callPackage ./frontend.nix { inherit meta version src; };
-    tests = { inherit (nixosTests) listmonk; };
-  };
-
-  meta = with lib; {
-    description = "High performance, self-hosted, newsletter and mailing list manager with a modern dashboard.";
-    homepage = "https://github.com/knadh/listmonk";
-    changelog = "https://github.com/knadh/listmonk/releases/tag/v${version}";
-    maintainers = with maintainers; [ raitobezarius ];
-    license = licenses.agpl3;
-  };
-}
diff --git a/pkgs/servers/mail/listmonk/frontend.nix b/pkgs/servers/mail/listmonk/frontend.nix
deleted file mode 100644
index 928092038c127..0000000000000
--- a/pkgs/servers/mail/listmonk/frontend.nix
+++ /dev/null
@@ -1,37 +0,0 @@
-{ mkYarnPackage
-, fetchYarnDeps
-, meta
-, version
-, src
-}:
-
-mkYarnPackage {
-  pname = "listmonk-frontend";
-  inherit version;
-
-  src = "${src}/frontend";
-  packageJSON = ./package.json;
-
-  offlineCache = fetchYarnDeps {
-    yarnLock = "${src}/frontend/yarn.lock";
-    hash = "sha256-TdrglyRtb2Q8SFtoiCoDj/zBV2+7DwzIm/Fzlt0ZvSo=";
-  };
-
-  configurePhase = ''
-    ln -s $node_modules node_modules
-  '';
-
-  buildPhase = ''
-    yarn --offline build
-  '';
-
-  installPhase = ''
-    mkdir $out
-    cp -R dist/* $out
-  '';
-
-  doDist = false;
-
-
-  inherit meta;
-}
diff --git a/pkgs/servers/mail/listmonk/package.json b/pkgs/servers/mail/listmonk/package.json
deleted file mode 100644
index 25018ef265dd7..0000000000000
--- a/pkgs/servers/mail/listmonk/package.json
+++ /dev/null
@@ -1,45 +0,0 @@
-{
-  "name": "listmonk",
-  "version": "0.1.0",
-  "private": true,
-  "scripts": {
-    "dev": "vite",
-    "build": "vite build",
-    "serve": "vite preview",
-    "lint": "eslint --ext .js,.vue --ignore-path .gitignore src",
-    "prebuild": "eslint --ext .js,.vue --ignore-path .gitignore src"
-  },
-  "dependencies": {
-    "@tinymce/tinymce-vue": "^3",
-    "axios": "^1.6.2",
-    "buefy": "^0.9.25",
-    "bulma": "^0.9.4",
-    "chart.js": "^4.4.1",
-    "codeflask": "^1.4.1",
-    "dayjs": "^1.11.10",
-    "indent.js": "^0.3.5",
-    "qs": "^6.10.1",
-    "textversionjs": "^1.1.3",
-    "tinymce": "^5.10.9",
-    "turndown": "^7.1.2",
-    "vue": "^2.7.14",
-    "vue-chartjs": "^5.3.0",
-    "vue-i18n": "^8.28.2",
-    "vue-router": "^3.2.0",
-    "vuex": "^3.6.2"
-  },
-  "devDependencies": {
-    "@vitejs/plugin-vue2": "^2.3.1",
-    "@vue/eslint-config-airbnb": "^7.0.1",
-    "cypress": "13.6.1",
-    "cypress-file-upload": "^5.0.2",
-    "eslint": "^8.56.0",
-    "eslint-define-config": "^2.0.0",
-    "eslint-plugin-import": "^2.23.3",
-    "eslint-plugin-vue": "^9.19.2",
-    "sass": "^1.34.0",
-    "vite": "^5.0.12",
-    "vue-eslint-parser": "^9.3.2",
-    "vue-template-compiler": "^2.6.12"
-  }
-}
diff --git a/pkgs/servers/mail/listmonk/stuffbin.nix b/pkgs/servers/mail/listmonk/stuffbin.nix
deleted file mode 100644
index 2640ba8b85197..0000000000000
--- a/pkgs/servers/mail/listmonk/stuffbin.nix
+++ /dev/null
@@ -1,25 +0,0 @@
-{ lib, buildGoModule, fetchFromGitHub }:
-
-buildGoModule rec {
-  pname = "stuffbin";
-  version = "1.1.0";
-
-  vendorHash = null;
-
-  src = fetchFromGitHub {
-    owner = "knadh";
-    repo = "stuffbin";
-    rev = "v${version}";
-    sha256 = "sha256-M72xNh7bKUMLzA+M8bJB++kJ5KCrkboQm1v8BasP3Yo=";
-  };
-
-  ldflags = [ "-s" "-w" "-X main.version=${version}" ];
-
-  meta = with lib; {
-    description = "Compress and embed static files and assets into Go binaries and access them with a virtual file system in production";
-    homepage = "https://github.com/knadh/stuffbin";
-    changelog = "https://github.com/knadh/stuffbin/releases/tag/v${version}";
-    maintainers = with maintainers; [ raitobezarius ];
-    license = licenses.mit;
-  };
-}