Skip to content

Commit 26ab3e1

Browse files
committedFeb 24, 2024
init flake
1 parent 6ddc693 commit 26ab3e1

File tree

3 files changed

+103
-1
lines changed

3 files changed

+103
-1
lines changed
 

‎.envrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
use nix
1+
use flake

‎flake.lock

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

‎flake.nix

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
description = "Nix hash collection";
3+
4+
inputs = {
5+
nixpkgs.url = "github:nixos/nixpkgs";
6+
flake-utils.url = "github:numtide/flake-utils";
7+
};
8+
9+
outputs = { self, nixpkgs, flake-utils }:
10+
11+
(flake-utils.lib.eachDefaultSystem (system:
12+
let pkgs = nixpkgs.legacyPackages.${system}; in
13+
{
14+
devShells.default = pkgs.mkShell {
15+
nativeBuildInputs = with pkgs; [ rustc cargo gcc pkg-config ];
16+
buildInputs = [
17+
(pkgs.python3.withPackages (
18+
ps: [
19+
ps.fastapi
20+
ps.uvicorn
21+
ps.sqlalchemy
22+
ps.pydantic
23+
]
24+
))
25+
pkgs.jq
26+
pkgs.rust-analyzer
27+
pkgs.openssl
28+
pkgs.nixVersions.nix_2_19
29+
pkgs.nlohmann_json
30+
pkgs.libsodium
31+
pkgs.boost
32+
pkgs.rustfmt
33+
34+
];
35+
36+
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
37+
38+
};
39+
}));
40+
41+
42+
}

0 commit comments

Comments
 (0)
Please sign in to comment.