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
|
let
|
||||||
pkgs = import inputs.nixpkgs { inherit system; };
|
pkgs = import inputs.nixpkgs { inherit system; };
|
||||||
|
|
||||||
cargoToml = fromTOML (builtins.readFile ./Cargo.toml);
|
src = ./.;
|
||||||
|
cargoToml = fromTOML (builtins.readFile "${src}/Cargo.toml");
|
||||||
name = cargoToml.package.name;
|
name = cargoToml.package.name;
|
||||||
|
|
||||||
crate = pkgs.rustPlatform.buildRustPackage {
|
crate = pkgs.rustPlatform.buildRustPackage {
|
||||||
inherit name;
|
inherit name src;
|
||||||
src = ./.;
|
|
||||||
|
|
||||||
cargoLock.lockFile = ./Cargo.lock;
|
cargoLock.lockFile = "${src}/Cargo.lock";
|
||||||
|
|
||||||
nativeBuildInputs = with pkgs; [
|
nativeBuildInputs = with pkgs; [
|
||||||
m4
|
m4
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue