summary refs log tree commit diff
path: root/ripple/nix/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'ripple/nix/default.nix')
-rw-r--r--ripple/nix/default.nix14
1 files changed, 13 insertions, 1 deletions
diff --git a/ripple/nix/default.nix b/ripple/nix/default.nix
index 065fdee..cf4273b 100644
--- a/ripple/nix/default.nix
+++ b/ripple/nix/default.nix
@@ -2,4 +2,16 @@
 # SPDX-License-Identifier: OSL-3.0
 
 let sources = import ./sources.nix {};
-in import sources.nixpkgs {}
+in import sources.nixpkgs {
+  overlays = [
+    (final: prev: {
+      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  
+        ];
+      });
+    })
+  ];
+}