nix: Return to building with crane (#21292)
This removes .envrc, putting it into gitignore as well as building with crane, as it does not require an up to date hash for a FOD. Release Notes: - N/A cc @mrnugget @jaredramirez
This commit is contained in:
parent
73f546ea5f
commit
94faf9dd56
5 changed files with 193 additions and 182 deletions
14
flake.nix
14
flake.nix
|
@ -7,11 +7,17 @@
|
|||
url = "github:oxalica/rust-overlay";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
crane.url = "github:ipetkov/crane";
|
||||
flake-compat.url = "github:edolstra/flake-compat";
|
||||
};
|
||||
|
||||
outputs =
|
||||
{ nixpkgs, rust-overlay, ... }:
|
||||
{
|
||||
nixpkgs,
|
||||
rust-overlay,
|
||||
crane,
|
||||
...
|
||||
}:
|
||||
let
|
||||
systems = [
|
||||
"x86_64-linux"
|
||||
|
@ -27,10 +33,8 @@
|
|||
};
|
||||
zed-editor = final: prev: {
|
||||
zed-editor = final.callPackage ./nix/build.nix {
|
||||
rustPlatform = final.makeRustPlatform {
|
||||
cargo = final.rustToolchain;
|
||||
rustc = final.rustToolchain;
|
||||
};
|
||||
crane = crane.mkLib final;
|
||||
rustToolchain = final.rustToolchain;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue