Skip to content

Commit 6742c3c

Browse files
committed
flake
Signed-off-by: Jess Frazelle <[email protected]>
1 parent ef260b6 commit 6742c3c

File tree

2 files changed

+49
-2
lines changed

2 files changed

+49
-2
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ git_rev = "0.1.0"
2121
heck = "0.5.0"
2222
http = "1"
2323
itertools = "0.12.1"
24-
kcl-lib = { version = "0.2.56", features = ["disable-println"] }
24+
kcl-lib = { version = "0.2.62", features = ["disable-println"] }
2525
#kcl-lib = { path = "../modeling-app/src/wasm-lib/kcl" }
26-
kcl-test-server = "0.1.56"
26+
kcl-test-server = "0.1.62"
2727
kittycad = { version = "0.3.33", features = ["clap", "tabled", "requests", "retry"] }
2828
kittycad-modeling-cmds = { version = "0.2.107", features = ["websocket", "convert_client_crate", "tabled"] }
2929
log = "0.4.27"

flake.nix

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
description = "cli development environment";
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+
self,
12+
nixpkgs,
13+
rust-overlay,
14+
flake-utils,
15+
...
16+
}:
17+
flake-utils.lib.eachDefaultSystem (
18+
system: let
19+
overlays = [
20+
(import rust-overlay)
21+
(self: super: {
22+
rustToolchain = super.rust-bin.stable.latest.default.override {
23+
extensions = ["rustfmt" "clippy" "rust-src"];
24+
};
25+
})
26+
];
27+
pkgs = import nixpkgs {
28+
inherit system overlays;
29+
};
30+
in {
31+
devShells.default = with pkgs;
32+
mkShell {
33+
nativeBuildInputs =
34+
(with pkgs; [
35+
rustToolchain
36+
openssl
37+
postgresql
38+
pkg-config
39+
])
40+
++ pkgs.lib.optionals pkgs.stdenv.isDarwin (with pkgs; [
41+
]);
42+
43+
RUSTFMT = "${pkgs.rust-bin.nightly.latest.rustfmt}/bin/rustfmt";
44+
};
45+
}
46+
);
47+
}

0 commit comments

Comments
 (0)