Skip to content

Commit ebc994d

Browse files
committed
add flake
1 parent b092208 commit ebc994d

File tree

2 files changed

+262
-0
lines changed

2 files changed

+262
-0
lines changed

flake.lock

+232
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
3+
inputs = {
4+
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
5+
rust-overlay.url = "github:oxalica/rust-overlay";
6+
flake-utils.url = "github:numtide/flake-utils";
7+
dependency-refresh.url = "github:yanganto/dependency-refresh";
8+
};
9+
10+
outputs = { self, rust-overlay, nixpkgs, flake-utils, dependency-refresh }:
11+
flake-utils.lib.eachDefaultSystem (system:
12+
let
13+
overlays = [ (import rust-overlay) ];
14+
pkgs = import nixpkgs {
15+
inherit system overlays;
16+
};
17+
rust = pkgs.rust-bin.stable.latest.default;
18+
in
19+
with pkgs;
20+
{
21+
devShell = mkShell {
22+
buildInputs = [
23+
openssl
24+
pkg-config
25+
rust
26+
];
27+
};
28+
}
29+
);
30+
}

0 commit comments

Comments
 (0)