From 5002ea57aaf2bee975a59996a5dfc921925f714b Mon Sep 17 00:00:00 2001 From: Yusuf Bera Ertan Date: Thu, 15 Apr 2021 00:19:55 +0300 Subject: [PATCH 1/2] chore(deps): update nix flake lock --- flake.lock | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/flake.lock b/flake.lock index a60fb318ea..c221ca1ffc 100644 --- a/flake.lock +++ b/flake.lock @@ -2,11 +2,11 @@ "nodes": { "flake-utils": { "locked": { - "lastModified": 1609246779, - "narHash": "sha256-eq6ZXE/VWo3EMC65jmIT6H/rrUc9UWOWVujkzav025k=", + "lastModified": 1614513358, + "narHash": "sha256-LakhOx3S1dRjnh0b5Dg3mbZyH0ToC9I8Y2wKSkBaTzU=", "owner": "numtide", "repo": "flake-utils", - "rev": "08c7ad4a0844adc4a7f9f5bb3beae482e789afa4", + "rev": "5466c5bbece17adaab2d82fae80b46e807611bf3", "type": "github" }, "original": { @@ -17,11 +17,11 @@ }, "flakeUtils": { "locked": { - "lastModified": 1614513358, - "narHash": "sha256-LakhOx3S1dRjnh0b5Dg3mbZyH0ToC9I8Y2wKSkBaTzU=", + "lastModified": 1618217525, + "narHash": "sha256-WGrhVczjXTiswQaoxQ+0PTfbLNeOQM6M36zvLn78AYg=", "owner": "numtide", "repo": "flake-utils", - "rev": "5466c5bbece17adaab2d82fae80b46e807611bf3", + "rev": "c6169a2772643c4a93a0b5ac1c61e296cba68544", "type": "github" }, "original": { @@ -53,11 +53,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1616259034, - "narHash": "sha256-WlMIiGIXJm7J+jemzd+ksoun6znWmabCZNz76szV158=", + "lastModified": 1618306168, + "narHash": "sha256-/IOtgzdEaiEqRVn6OhpekuYhRHfCm299Bqts5QqQVko=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "4e0d3868c679da20108db402785f924daa1a7fb5", + "rev": "4c87cb87a2db6b9eb43541c1cf83f2a2f725fa25", "type": "github" }, "original": { @@ -83,11 +83,11 @@ ] }, "locked": { - "lastModified": 1616467144, - "narHash": "sha256-7iGzusiBdQcXGrnQGcLwRoEiKtH3bNGIpXu+TJTD6Gw=", + "lastModified": 1618366946, + "narHash": "sha256-5zevIklODemySoUY8xtIemD/WO7ftaXeltz9rraEVAc=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "cdaa20a3e7f97d5fad271464dac7e2725157c6e7", + "rev": "82b13c9048b345cf6345dd326478ad5ec059e6c6", "type": "github" }, "original": { From 70d1bb78f68713f4b3c60540f000aaae38009eaf Mon Sep 17 00:00:00 2001 From: Yusuf Bera Ertan Date: Thu, 15 Apr 2021 00:28:35 +0300 Subject: [PATCH 2/2] 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" ]; }; -}