build(nix): remove useless rustpkgs

This commit is contained in:
Yusuf Bera Ertan 2021-04-15 00:28:35 +03:00
parent ff1d86cee3
commit 6331f4e1cc
No known key found for this signature in database
GPG Key ID: 1D8F8FAF2294D6EA
2 changed files with 0 additions and 20 deletions

View File

@ -183,12 +183,6 @@ It is inadvised to update revisions without the use of `nix flake update` as it'
Modify the relevant `rev` field in `flake.lock` to what you need - you can use `nix-prefetch-git` to find an up-to-date revision. Leave the `narHash` entry as is and attempt a rebuild to find out what its value should be. Modify the relevant `rev` field in `flake.lock` to what you need - you can use `nix-prefetch-git` to find an up-to-date revision. Leave the `narHash` entry as is and attempt a rebuild to find out what its value should be.
### Rust toolchain
If the `rust-toolchain` file is updated, you will need to update the `sha256` hash in the `nix/rustPkgs.nix` file.
Trying to build the derivation should give you the correct hash to put in.
## Formatting ## Formatting
Use [nixpkgs-fmt](https://github.com/nix-community/nixpkgs-fmt) to format files. Use [nixpkgs-fmt](https://github.com/nix-community/nixpkgs-fmt) to format files.

View File

@ -1,14 +0,0 @@
{ nixpkgsMoz, pkgs }:
let
mozPkgs = import "${nixpkgsMoz}/package-set.nix" {
inherit pkgs;
};
channel = mozPkgs.rustChannelOf {
rustToolchain = ../rust-toolchain;
sha256 = "sha256-9wp6afVeZqCOEgXxYQiryYeF07kW5IHh3fQaOKF2oRI=";
};
in
channel // {
rust = channel.rust.override { extensions = [ "rust-src" ]; };
}