aboutsummaryrefslogtreecommitdiff
path: root/pkgs
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2024-10-01 08:54:42 +0200
committerKarel Kočí <cynerd@email.cz>2024-10-01 08:54:42 +0200
commit7479f3893ddd4bc7d392d07a2070f1d506116c1d (patch)
treefc6009ada45881dc49954e590d1b57e0697746d2 /pkgs
parent632f41025a80c23f1765a0e813a718d90a490ffe (diff)
downloadnixos-personal-7479f3893ddd4bc7d392d07a2070f1d506116c1d.tar.gz
nixos-personal-7479f3893ddd4bc7d392d07a2070f1d506116c1d.tar.bz2
nixos-personal-7479f3893ddd4bc7d392d07a2070f1d506116c1d.zip
pkgs: add dodo
The alternative mail client.
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/default.nix2
-rw-r--r--pkgs/dodo/default.nix37
2 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/default.nix b/pkgs/default.nix
index eca6db6..68c6951 100644
--- a/pkgs/default.nix
+++ b/pkgs/default.nix
@@ -29,6 +29,8 @@ in {
bigclown-leds = final.callPackage ./bigclown-leds {};
+ dodo = final.callPackage ./dodo {};
+
# nixpkgs patches
zigbee2mqtt = prev.zigbee2mqtt.overrideAttrs {
npmInstallFlags = ["--no-optional"]; # Fix cross build
diff --git a/pkgs/dodo/default.nix b/pkgs/dodo/default.nix
new file mode 100644
index 0000000..3491377
--- /dev/null
+++ b/pkgs/dodo/default.nix
@@ -0,0 +1,37 @@
+{
+ python3Packages,
+ fetchFromGitHub,
+ qt6,
+ copyDesktopItems,
+}:
+python3Packages.buildPythonApplication {
+ pname = "dodo";
+ version = "240917";
+ pyproject = true;
+
+ src = fetchFromGitHub {
+ owner = "akissinger";
+ repo = "dodo";
+ rev = "194fb49523c7851bedc3ca8c11adea04830fb28d";
+ hash = "sha256-iGMIeGGqJnp0xi4q1Dpev4dkSp0tdFGu0U/MGeHrtcY=";
+ };
+
+ build-system = with python3Packages; [
+ setuptools
+ ];
+
+ dependencies = with python3Packages; [
+ qt6.qtwayland
+ bleach
+ pyqt6
+ pyqt6-webengine
+ python-gnupg
+ copyDesktopItems
+ ];
+
+ nativeBuildInputs = [qt6.wrapQtAppsHook];
+ dontWrapQtApps = true;
+ preFixup = ''
+ wrapQtApp "$out/bin/dodo" --prefix PATH : $out/bin/dodo
+ '';
+}