flake.nix: use Mozilla overlay for Rust

[?]
Nov 17, 2020, 3:41 AM
ZWPPIJXFKEL3RP2MEYGB3BPTE73GYRW6FSRZDQKFBJFOK4JBNQ4AC

Dependencies

  • [2] G734WNM6 flake.nix: use crate2nix
  • [3] SXEYMYF7 Fixing the bad changes in history (unfortunately, by rebooting).

Change contents

  • edit in flake.nix at line 5
    [2.246088]
    [3.1023891]
    inputs.mozilla = { url = "github:mozilla/nixpkgs-mozilla"; flake = false; };
  • replacement in flake.nix at line 7
    [3.1023892][2.246089:246134]()
    outputs = { self, nixpkgs, ... } @ inputs:
    [3.1023892]
    [3.1023923]
    outputs =
    { self
    , nixpkgs
    , mozilla
    , ...
    } @ inputs:
  • edit in flake.nix at line 18
    [3.1024164]
    [3.1024164]
    rustOverlay = final: prev:
    let
    rustChannel = prev.rustChannelOf {
    channel = "1.47.0";
    sha256 = "1hkisci4as93hx8ybf13bmxkj9jsvd4a9ilvjmw6n64w4jkc1nk9";
    };
    in
    {
    inherit rustChannel;
    rustc = rustChannel.rust;
    cargo = rustChannel.rust;
    };
  • replacement in flake.nix at line 33
    [3.1024246][3.1024246:1024297]()
    pkgs = import nixpkgs { inherit system; };
    [3.1024246]
    [3.1024297]
    pkgs = import nixpkgs {
    inherit system;
    overlays = [
    (import "${mozilla}/rust-overlay.nix")
    rustOverlay
    ];
    };
  • replacement in flake.nix at line 71
    [2.246505][3.1024887:1024983](),[3.1024887][3.1024887:1024983]()
    rustPackages.cargo
    rustPackages.rustfmt
    rustPackages.clippy
    [2.246505]
    [2.246506]
    # rustChannel.rust provides tools like clippy, rustfmt, cargo,
    # rust-analyzer, rustc, and more.
    rustChannel.rust
  • edit in flake.lock at line 19
    [2.248048]
    [3.1026253]
    "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
    [2.248285]
    [3.1026722]
    "mozilla": "mozilla",