flake.nix: use Mozilla overlay for Rust
[?]
Nov 17, 2020, 3:41 AM
ZWPPIJXFKEL3RP2MEYGB3BPTE73GYRW6FSRZDQKFBJFOK4JBNQ4ACDependencies
- [2]
G734WNM6flake.nix: use crate2nix - [3]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting).
Change contents
- edit in flake.nix at line 5
inputs.mozilla = { url = "github:mozilla/nixpkgs-mozilla"; flake = false; }; - replacement in flake.nix at line 7
outputs = { self, nixpkgs, ... } @ inputs:outputs ={ self, nixpkgs, mozilla, ...} @ inputs: - edit in flake.nix at line 18
rustOverlay = final: prev:letrustChannel = prev.rustChannelOf {channel = "1.47.0";sha256 = "1hkisci4as93hx8ybf13bmxkj9jsvd4a9ilvjmw6n64w4jkc1nk9";};in{inherit rustChannel;rustc = rustChannel.rust;cargo = rustChannel.rust;}; - replacement in flake.nix at line 33
pkgs = import nixpkgs { inherit system; };pkgs = import nixpkgs {inherit system;overlays = [(import "${mozilla}/rust-overlay.nix")rustOverlay];}; - replacement in flake.nix at line 71
rustPackages.cargorustPackages.rustfmtrustPackages.clippy# rustChannel.rust provides tools like clippy, rustfmt, cargo,# rust-analyzer, rustc, and more.rustChannel.rust - edit in flake.lock at line 19
"mozilla": {"flake": false,"locked": {"lastModified": 1603906276,"narHash": "sha256-RsNPnEKd7BcogwkqhaV5kI/HuNC4flH/OQCC/4W5y/8=","owner": "mozilla","repo": "nixpkgs-mozilla","rev": "8c007b60731c07dd7a052cce508de3bb1ae849b4","type": "github"},"original": {"owner": "mozilla","repo": "nixpkgs-mozilla","type": "github"}}, - edit in flake.lock at line 54
"mozilla": "mozilla",