Skip to content

Commit 583f1fd

Browse files
committed
flakify
1 parent 1d6ec8f commit 583f1fd

File tree

3 files changed

+128
-1
lines changed

3 files changed

+128
-1
lines changed

.envrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
eval "$(lorri direnv)"
1+
use flake

flake.lock

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

flake.nix

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

0 commit comments

Comments
 (0)