summary refs log tree commit diff
path: root/ripple/nix/default.nix
blob: 590aec6e94ceb5c906497cd741fda3619d189116 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# SPDX-FileCopyrightText: V <v@unfathomable.blue>
# 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  
        ];
      });
    })
  ];
}