Skip to content

Commit c2d6986

Browse files
committed
fix: this is a lib we don't need crane
1 parent 6228308 commit c2d6986

File tree

2 files changed

+1
-68
lines changed

2 files changed

+1
-68
lines changed

flake.lock

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

flake.nix

+1-24
Original file line numberDiff line numberDiff line change
@@ -9,40 +9,17 @@
99
flake-utils.follows = "flake-utils";
1010
};
1111
};
12-
crane = {
13-
url = "github:ipetkov/crane";
14-
inputs = {
15-
nixpkgs.follows = "nixpkgs";
16-
flake-utils.follows = "flake-utils";
17-
rust-overlay.follows = "rust-overlay";
18-
};
19-
};
2012
};
21-
outputs = { self, nixpkgs, flake-utils, rust-overlay, crane }:
13+
outputs = { self, nixpkgs, flake-utils, rust-overlay }:
2214
flake-utils.lib.eachDefaultSystem (system:
2315
let
2416
overlays = [ (import rust-overlay) ];
2517
pkgs = import nixpkgs {
2618
inherit system overlays;
2719
};
28-
29-
craneLib = crane.lib.${system};
30-
src = craneLib.cleanCargoSource ./.;
31-
32-
commonArgs = { inherit src; };
33-
34-
cargoArtifacts = craneLib.buildDepsOnly commonArgs;
35-
bin = craneLib.buildPackage (commonArgs // {
36-
inherit cargoArtifacts;
37-
});
3820
in
3921
with pkgs;
4022
{
41-
packages = {
42-
inherit bin;
43-
default = bin;
44-
};
45-
4623
devShells.default = mkShell {
4724
buildInputs = [
4825
rust-bin.stable.latest.default

0 commit comments

Comments
 (0)