From 70d1bb78f68713f4b3c60540f000aaae38009eaf Mon Sep 17 00:00:00 2001
From: Yusuf Bera Ertan <y.bera003.06@protonmail.com>
Date: Thu, 15 Apr 2021 00:28:35 +0300
Subject: [PATCH] build(nix): remove useless rustpkgs

---
 nix/README.md    |  6 ------
 nix/rustPkgs.nix | 14 --------------
 2 files changed, 20 deletions(-)
 delete mode 100644 nix/rustPkgs.nix

diff --git a/nix/README.md b/nix/README.md
index 6df9cad2ae..5bc94b991c 100644
--- a/nix/README.md
+++ b/nix/README.md
@@ -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.
 
-### 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
 
 Use [nixpkgs-fmt](https://github.com/nix-community/nixpkgs-fmt) to format files.
diff --git a/nix/rustPkgs.nix b/nix/rustPkgs.nix
deleted file mode 100644
index a96730488b..0000000000
--- a/nix/rustPkgs.nix
+++ /dev/null
@@ -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" ]; };
-}