about summary refs log tree commit diff stats
path: root/pkgs/by-name/at/atuin-server-only
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/at/atuin-server-only')
-rw-r--r--pkgs/by-name/at/atuin-server-only/package.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/pkgs/by-name/at/atuin-server-only/package.nix b/pkgs/by-name/at/atuin-server-only/package.nix
new file mode 100644
index 0000000..ddad2ec
--- /dev/null
+++ b/pkgs/by-name/at/atuin-server-only/package.nix
@@ -0,0 +1,22 @@
+{atuin}:
+atuin.overrideAttrs (final: prev: {
+  pname = prev.pname + "-server-only";
+  inherit (prev) patches;
+
+  # atuin's default features include 'check-updates', which do not make sense
+  # for distribution builds. List all other default features.
+  buildNoDefaultFeatures = true;
+  buildFeatures = [
+    # All of this is client code
+    # "client"
+    # "sync"
+    # "check-update"
+    # "clipboard"
+    # "daemon" # Background daemon for the client
+
+    "server"
+  ];
+
+  # The checks don't compile without the `server` feature
+  doCheck = true;
+})