aboutsummaryrefslogtreecommitdiffstats
path: root/nix/package.nix
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-06-12 01:54:21 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-06-12 01:54:21 +0200
commitbbdf38018b47328b5faa2cef635c37095045be72 (patch)
tree8983817d547551ae12508a8ae8731b622d990af4 /nix/package.nix
parentfeat(server): Make user stuff stateless (diff)
downloadatuin-bbdf38018b47328b5faa2cef635c37095045be72.zip
feat(server): Really make users stateless (with tests)
This commit also remove another load of unneeded features.
Diffstat (limited to '')
-rw-r--r--nix/package.nix (renamed from atuin.nix)25
1 files changed, 22 insertions, 3 deletions
diff --git a/atuin.nix b/nix/package.nix
index 22022835..82a348b8 100644
--- a/atuin.nix
+++ b/nix/package.nix
@@ -12,12 +12,31 @@
libiconv,
}:
rustPlatform.buildRustPackage {
- name = "atuin";
+ name = "turtle";
- src = lib.cleanSource ./.;
+ src = lib.cleanSourceWith {
+ src = lib.cleanSource ./..;
+ filter = name: type:
+ (type == "directory")
+ || (builtins.elem (builtins.baseNameOf name) [
+ "Cargo.toml"
+ "Cargo.lock"
+ "CONTRIBUTORS"
+
+ "atuin.bash"
+ "atuin.fish"
+ "atuin.nu"
+ "atuin.ps1"
+ "atuin.xsh"
+ "atuin.zsh"
+ ])
+ || (lib.strings.hasSuffix ".rs" (builtins.baseNameOf name))
+ || (lib.strings.hasSuffix ".proto" (builtins.baseNameOf name))
+ || (lib.strings.hasSuffix ".sql" (builtins.baseNameOf name));
+ };
cargoLock = {
- lockFile = ./Cargo.lock;
+ lockFile = ../Cargo.lock;
# Allow dependencies to be fetched from git and avoid having to set the outputHashes manually
allowBuiltinFetchGit = true;
};