mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 07:41:23 +01:00
remove usage of IFD in nix packages
Lix builders have IFD disabled, and the changes needed to support this are minimal. We do need to do slightly more manual work to keep rust-toolchain.toml in sync with flake.nix, but it's not significant.
This commit is contained in:
parent
b45c0afe37
commit
992e6b945a
3 changed files with 45 additions and 17 deletions
|
|
@ -71,12 +71,10 @@ let
|
|||
} // buildDepsOnlyEnv;
|
||||
|
||||
commonAttrs = {
|
||||
inherit
|
||||
(craneLib.crateNameFromCargoToml {
|
||||
cargoToml = "${inputs.self}/Cargo.toml";
|
||||
})
|
||||
pname
|
||||
version;
|
||||
# Reading from cargoManifest directly instead of using
|
||||
# createNameFromCargoToml to avoid IFD
|
||||
pname = cargoManifest.package.name;
|
||||
version = cargoManifest.package.version;
|
||||
|
||||
src = let filter = inputs.nix-filter.lib; in filter {
|
||||
root = inputs.self;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue