about summary refs log tree commit diff stats
path: root/pkgs/by-name/at/atuin-dvorak
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--pkgs/by-name/at/atuin-dvorak/package.nix23
-rw-r--r--pkgs/by-name/at/atuin-dvorak/set-dvorak-keybindings.patch (renamed from pkgs/by-name/at/atuin/set-dvorak-keybindings.patch)0
2 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/by-name/at/atuin-dvorak/package.nix b/pkgs/by-name/at/atuin-dvorak/package.nix
new file mode 100644
index 00000000..c651eb75
--- /dev/null
+++ b/pkgs/by-name/at/atuin-dvorak/package.nix
@@ -0,0 +1,23 @@
+{atuin}:
+atuin.overrideAttrs (finalAttrs: previousAttrs: {
+  pname = previousAttrs.pname + "-dvorak";
+  patches =
+    previousAttrs.patches
+    ++ [
+      ./set-dvorak-keybindings.patch
+    ];
+
+  # atuin's default features include 'check-updates', which do not make sense
+  # for distribution builds. List all other default features.
+  buildNoDefaultFeatures = true;
+  buildFeatures = [
+    "client"
+    # "sync"
+    # "server"
+    "clipboard"
+    # "daemon"
+  ];
+
+  # The checks don't compile without the `server` feature
+  doCheck = false;
+})
diff --git a/pkgs/by-name/at/atuin/set-dvorak-keybindings.patch b/pkgs/by-name/at/atuin-dvorak/set-dvorak-keybindings.patch
index 9ab3700a..9ab3700a 100644
--- a/pkgs/by-name/at/atuin/set-dvorak-keybindings.patch
+++ b/pkgs/by-name/at/atuin-dvorak/set-dvorak-keybindings.patch