# SPDX-FileCopyrightText: V # SPDX-License-Identifier: OSL-3.0 let sources = import ./sources.nix {}; in import sources.nixpkgs { overlays = [ (final: prev: { # This was not available in nixpkgs at the time of writing. naersk = final.callPackage sources.naersk {}; rustfmt = prev.rustfmt.overrideAttrs ({ patches ? [], ... }: { patches = patches ++ [ # Adds an option variant that merges all use statements into a single block. # Taken from https://github.com/rust-lang/rustfmt/pull/4680 ./Implement-One-option-for-imports_granularity-4669.patch ]; }); }) ]; }