File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -4,5 +4,5 @@ if ! has nix_direnv_version || ! nix_direnv_version 2.2.1; then
4
4
source_url " https://raw.githubusercontent.com/nix-community/nix-direnv/2.2.1/direnvrc" " sha256-zelF0vLbEl5uaqrfIzbgNzJWGmLzCmYAkInj/LNxvKs="
5
5
fi
6
6
7
- nix_direnv_watch_file rust-toolchain.toml
7
+ watch_file rust-toolchain.toml
8
8
use flake
Original file line number Diff line number Diff line change 30
30
rustToolchain = pkgs . pkgsBuildHost . rust-bin . fromRustupToolchainFile ./rust-toolchain.toml ;
31
31
craneLib = ( crane . mkLib pkgs ) . overrideToolchain rustToolchain ;
32
32
33
+ crateName = craneLib . crateNameFromCargoToml {
34
+ cargoToml = ./cli/Cargo.toml ;
35
+ } ;
36
+
33
37
# src = craneLib.cleanCargoSource ./.; # filter out md files which are used in docs
34
38
src = nixpkgs . lib . cleanSource ( craneLib . path ./. ) ;
35
39
36
40
nativeBuildInputs = with pkgs ; [ rustToolchain clang ] ;
37
41
buildInputs = with pkgs ; [ ] ;
38
42
commonArgs = {
43
+ inherit ( crateName ) pname version ;
39
44
inherit src buildInputs nativeBuildInputs ;
40
45
LIBCLANG_PATH = "${ pkgs . libclang . lib } /lib" ; # for rocksdb
41
46
You can’t perform that action at this time.
0 commit comments