Fix crane package version
This commit is contained in:
parent
775ea030b4
commit
d8b9ff7bbd
11
crane.nix
11
crane.nix
|
@ -50,8 +50,9 @@ let
|
||||||
crossPlatform = crossPlatforms.${system};
|
crossPlatform = crossPlatforms.${system};
|
||||||
inherit (crossPlatform) pkgs;
|
inherit (crossPlatform) pkgs;
|
||||||
craneLib = (crane.mkLib pkgs).overrideToolchain rustNightly;
|
craneLib = (crane.mkLib pkgs).overrideToolchain rustNightly;
|
||||||
|
crateName = craneLib.crateNameFromCargoToml {
|
||||||
pname = "nix-actions-cache";
|
cargoToml = ./nix-actions-cache/Cargo.toml;
|
||||||
|
};
|
||||||
|
|
||||||
src = nix-gitignore.gitignoreSource [] ./.;
|
src = nix-gitignore.gitignoreSource [] ./.;
|
||||||
|
|
||||||
|
@ -70,12 +71,14 @@ let
|
||||||
cargoExtraArgs = "--target ${crossPlatform.rustTargetSpec}";
|
cargoExtraArgs = "--target ${crossPlatform.rustTargetSpec}";
|
||||||
|
|
||||||
cargoArtifacts = craneLib.buildDepsOnly ({
|
cargoArtifacts = craneLib.buildDepsOnly ({
|
||||||
inherit pname src buildInputs nativeBuildInputs cargoExtraArgs;
|
inherit (crateName) pname version;
|
||||||
|
inherit src buildInputs nativeBuildInputs cargoExtraArgs;
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
} // crossPlatform.env);
|
} // crossPlatform.env);
|
||||||
crate = craneLib.buildPackage ({
|
crate = craneLib.buildPackage ({
|
||||||
inherit pname src buildInputs nativeBuildInputs cargoExtraArgs;
|
inherit (crateName) pname version;
|
||||||
|
inherit src buildInputs nativeBuildInputs cargoExtraArgs;
|
||||||
inherit cargoArtifacts;
|
inherit cargoArtifacts;
|
||||||
|
|
||||||
# The resulting executable must be standalone
|
# The resulting executable must be standalone
|
||||||
|
|
Loading…
Reference in a new issue