-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
overlay.nix
43 lines (38 loc) · 1.13 KB
/
overlay.nix
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
final: _: {
catppuccin-catwalk = final.callPackage (
{
lib,
rustPlatform,
installShellFiles,
}:
rustPlatform.buildRustPackage {
pname = "catppuccin-catwalk";
inherit ((lib.importTOML ./Cargo.toml).package) version;
src = lib.fileset.toSource {
root = ./.;
fileset = lib.fileset.intersection (lib.fileset.fromSource (lib.sources.cleanSource ./.)) (
lib.fileset.unions [
./Cargo.toml
./Cargo.lock
./src
./LICENSE
]
);
};
cargoLock.lockFile = ./Cargo.lock;
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installShellCompletion --cmd catwalk \
--bash <("$out/bin/catwalk" completion bash) \
--zsh <("$out/bin/catwalk" completion zsh) \
--fish <("$out/bin/catwalk" completion fish)
'';
meta = {
homepage = "https://github.com/catppuccin/catwalk";
description = "🚶 Soothing pastel previews for the high-spirited!";
license = lib.licenses.mit;
mainProgram = "catwalk";
};
}
) { };
}