-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathdefault.nix
More file actions
51 lines (44 loc) · 977 Bytes
/
Copy pathdefault.nix
File metadata and controls
51 lines (44 loc) · 977 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
lib,
rustPlatform,
direnv,
tmux,
fish,
nushell,
}:
rustPlatform.buildRustPackage {
pname = "direnv-instant";
version = "1.3.0";
src = lib.fileset.toSource {
root = ./.;
fileset = lib.fileset.unions [
./Cargo.toml
./Cargo.lock
./src
./hooks
./tests
];
};
cargoLock.lockFile = ./Cargo.lock;
nativeCheckInputs = [
direnv
tmux
fish
nushell
];
# Integration tests spawn shells and tmux servers; isolate them.
preCheck = ''
export HOME=$(mktemp -d)
export TMPDIR=/tmp
'';
# Nushell's `source` is a parse-time keyword and cannot read command
# output, so ship the hook as a file users can source by path.
postInstall = ''
install -Dm644 hooks/nushell.nu $out/share/direnv-instant/nushell.nu
'';
meta = with lib; {
description = "Non-blocking direnv integration daemon with tmux support";
license = licenses.mit;
mainProgram = "direnv-instant";
};
}