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:
Stanislav Alekseev 2024-11-29 11:09:33 +02:00 committed by GitHub
parent 73f546ea5f
commit 94faf9dd56
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 193 additions and 182 deletions

View file

@ -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;
};
};
};