diff options
author | Karel Kočí <cynerd@email.cz> | 2024-10-01 08:54:42 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2024-10-01 08:54:42 +0200 |
commit | 7479f3893ddd4bc7d392d07a2070f1d506116c1d (patch) | |
tree | fc6009ada45881dc49954e590d1b57e0697746d2 | |
parent | 632f41025a80c23f1765a0e813a718d90a490ffe (diff) | |
download | nixos-personal-7479f3893ddd4bc7d392d07a2070f1d506116c1d.tar.gz nixos-personal-7479f3893ddd4bc7d392d07a2070f1d506116c1d.tar.bz2 nixos-personal-7479f3893ddd4bc7d392d07a2070f1d506116c1d.zip |
pkgs: add dodo
The alternative mail client.
-rw-r--r-- | nixos/modules/desktop.nix | 1 | ||||
-rw-r--r-- | nixos/modules/packages.nix | 1 | ||||
-rw-r--r-- | pkgs/default.nix | 2 | ||||
-rw-r--r-- | pkgs/dodo/default.nix | 37 |
4 files changed, 41 insertions, 0 deletions
diff --git a/nixos/modules/desktop.nix b/nixos/modules/desktop.nix index 4a8c7dd..54c50d2 100644 --- a/nixos/modules/desktop.nix +++ b/nixos/modules/desktop.nix @@ -70,6 +70,7 @@ in { msmtp notmuch astroid + dodo taskwarrior3 vdirsyncer khal diff --git a/nixos/modules/packages.nix b/nixos/modules/packages.nix index d321901..1052f56 100644 --- a/nixos/modules/packages.nix +++ b/nixos/modules/packages.nix @@ -66,6 +66,7 @@ in { speedtest-cli librespeed-cli termshark + w3m lm_sensors ] 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 + ''; +} |