mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 07:41:23 +01:00
don't use file type flake inputs
Because they aren't supported by flake-compat and can't be without IFD.
This commit is contained in:
parent
114e7ba577
commit
adb174d985
2 changed files with 9 additions and 22 deletions
15
flake.lock
generated
15
flake.lock
generated
|
|
@ -267,8 +267,7 @@
|
||||||
"flake-utils": "flake-utils",
|
"flake-utils": "flake-utils",
|
||||||
"nix-filter": "nix-filter",
|
"nix-filter": "nix-filter",
|
||||||
"nixpkgs": "nixpkgs_2",
|
"nixpkgs": "nixpkgs_2",
|
||||||
"rocksdb": "rocksdb",
|
"rocksdb": "rocksdb"
|
||||||
"rust-manifest": "rust-manifest"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rust-analyzer-src": {
|
"rust-analyzer-src": {
|
||||||
|
|
@ -288,18 +287,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rust-manifest": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"narHash": "sha256-dm4qOlaZ/uZ+O2TmOrWEjjMAzZNWAGE8S0ne79Fo8OA=",
|
|
||||||
"type": "file",
|
|
||||||
"url": "https://static.rust-lang.org/dist/channel-rust-1.84.0.toml"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"type": "file",
|
|
||||||
"url": "https://static.rust-lang.org/dist/channel-rust-1.84.0.toml"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"systems": {
|
"systems": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1681028828,
|
"lastModified": 1681028828,
|
||||||
|
|
|
||||||
16
flake.nix
16
flake.nix
|
|
@ -9,16 +9,16 @@
|
||||||
nix-filter.url = "github:numtide/nix-filter?ref=main";
|
nix-filter.url = "github:numtide/nix-filter?ref=main";
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
|
||||||
rocksdb = { url = "github:facebook/rocksdb?ref=v9.7.4"; flake = false; };
|
rocksdb = { url = "github:facebook/rocksdb?ref=v9.7.4"; flake = false; };
|
||||||
|
|
||||||
rust-manifest = {
|
|
||||||
# Keep version in sync with rust-toolchain.toml
|
|
||||||
url = "https://static.rust-lang.org/dist/channel-rust-1.84.0.toml";
|
|
||||||
flake = false;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs:
|
outputs = inputs:
|
||||||
let
|
let
|
||||||
|
rust-manifest = builtins.fetchurl {
|
||||||
|
# Keep version in sync with rust-toolchain.toml
|
||||||
|
url = "https://static.rust-lang.org/dist/channel-rust-1.84.0.toml";
|
||||||
|
sha256 = "sha256-lMLAupxng4Fd9F1oDw8gx+qA0RuF7ou7xhNU8wgs0PU=";
|
||||||
|
};
|
||||||
|
|
||||||
# Keep sorted
|
# Keep sorted
|
||||||
mkScope = pkgs: pkgs.lib.makeScope pkgs.newScope (self: {
|
mkScope = pkgs: pkgs.lib.makeScope pkgs.newScope (self: {
|
||||||
craneLib =
|
craneLib =
|
||||||
|
|
@ -60,11 +60,11 @@
|
||||||
targets = toolchainFile.toolchain.targets;
|
targets = toolchainFile.toolchain.targets;
|
||||||
fenix = inputs.fenix.packages.${pkgs.stdenv.buildPlatform.system};
|
fenix = inputs.fenix.packages.${pkgs.stdenv.buildPlatform.system};
|
||||||
|
|
||||||
nativeToolchain = (fenix.fromManifestFile inputs.rust-manifest)
|
nativeToolchain = (fenix.fromManifestFile rust-manifest)
|
||||||
.withComponents components;
|
.withComponents components;
|
||||||
crossComponents = builtins.map
|
crossComponents = builtins.map
|
||||||
(target:
|
(target:
|
||||||
(fenix.targets.${target}.fromManifestFile inputs.rust-manifest)
|
(fenix.targets.${target}.fromManifestFile rust-manifest)
|
||||||
.rust-std)
|
.rust-std)
|
||||||
targets;
|
targets;
|
||||||
in
|
in
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue