Skip to content

Commit 97238f2

Browse files
committed
fix
1 parent dc35d9a commit 97238f2

File tree

3 files changed

+186
-383
lines changed

3 files changed

+186
-383
lines changed

flake.lock

Lines changed: 96 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
description = "A devShell example";
3+
4+
inputs = {
5+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
6+
rust-overlay.url = "github:oxalica/rust-overlay";
7+
flake-utils.url = "github:numtide/flake-utils";
8+
};
9+
10+
outputs =
11+
{
12+
self,
13+
nixpkgs,
14+
rust-overlay,
15+
flake-utils,
16+
...
17+
}:
18+
flake-utils.lib.eachDefaultSystem (
19+
system:
20+
let
21+
overlays = [ (import rust-overlay) ];
22+
pkgs = import nixpkgs {
23+
inherit system overlays;
24+
};
25+
in
26+
{
27+
devShells.default =
28+
with pkgs;
29+
mkShell {
30+
buildInputs = [
31+
openssl
32+
pkg-config
33+
eza
34+
fd
35+
rust-bin.beta.latest.default
36+
];
37+
38+
shellHook = ''
39+
alias ls=eza
40+
alias find=fd
41+
'';
42+
};
43+
}
44+
);
45+
}

0 commit comments

Comments
 (0)