build: don't duplicate cargo files in the store
This commit is contained in:
parent
c3526bf161
commit
1bb69e7357
1 changed files with 4 additions and 4 deletions
|
|
@ -12,14 +12,14 @@
|
|||
let
|
||||
pkgs = import inputs.nixpkgs { inherit system; };
|
||||
|
||||
cargoToml = fromTOML (builtins.readFile ./Cargo.toml);
|
||||
src = ./.;
|
||||
cargoToml = fromTOML (builtins.readFile "${src}/Cargo.toml");
|
||||
name = cargoToml.package.name;
|
||||
|
||||
crate = pkgs.rustPlatform.buildRustPackage {
|
||||
inherit name;
|
||||
src = ./.;
|
||||
inherit name src;
|
||||
|
||||
cargoLock.lockFile = ./Cargo.lock;
|
||||
cargoLock.lockFile = "${src}/Cargo.lock";
|
||||
|
||||
nativeBuildInputs = with pkgs; [
|
||||
m4
|
||||
|
|
|
|||
Loading…
Reference in a new issue