forked from aljazerzen/connector_arrow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
58 lines (50 loc) · 1.38 KB
/
flake.nix
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
description = "PRQL development environment";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
fenix = {
url = "github:nix-community/fenix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, flake-utils, fenix }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
fenix_pkgs = fenix.packages.${system};
dontCheckPython = drv: drv.overridePythonAttrs (old: { doCheck = false; });
essentials = with pkgs; [
(fenix_pkgs.stable.withComponents [
"cargo"
"clippy"
"rust-src"
"rustc"
"rustfmt"
"rust-analyzer"
])
clang
# tools
just
cargo-nextest
cargo-insta
cargo-audit
pkg-config
docker-compose
(dontCheckPython python311Packages.yamlfix)
comrak
fd
];
dbs = with pkgs; [
sqlite
duckdb # version of duckdb here should match to version specified in Cargo.toml
];
in
{
devShells.default = pkgs.mkShell {
buildInputs = essentials ++ dbs;
# linking duckdb needs this
LD_LIBRARY_PATH = "${pkgs.stdenv.cc.cc.lib}/lib";
};
});
}