-
Notifications
You must be signed in to change notification settings - Fork 242
Expand file tree
/
Copy pathflake.nix
More file actions
43 lines (40 loc) · 1.11 KB
/
flake.nix
File metadata and controls
43 lines (40 loc) · 1.11 KB
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
{
description = "Nix flake for skim development";
inputs.nixpkgs.url = "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.xz";
outputs = inputs: let
inherit (inputs.nixpkgs) lib;
systems = lib.systems.flakeExposed;
eachSystem = lib.genAttrs systems;
pkgsFor = inputs.nixpkgs.legacyPackages;
in {
devShells = eachSystem (system: {
default = pkgsFor.${system}.mkShellNoCC {
packages = with pkgsFor.${system}; [
cargo-nextest
cargo-insta
cargo-llvm-cov
cargo-edit
cargo-public-api
git-cliff
libclang
binutils
tmux
rustup
just
hyperfine
uv
valgrind
python313Packages.matplotlib
python313Packages.requests
];
shellHook = let
pkgs = pkgsFor.${system};
in ''
export LIBCLANG_PATH="${pkgs.libclang.lib}/lib"
export LD_LIBRARY_PATH="${pkgs.valgrind.out}/lib:$LD_LIBRARY_PATH"
'';
};
});
formatter = eachSystem (system: pkgsFor.${system}.nixfmt);
};
}