|
26 | 26 | };
|
27 | 27 |
|
28 | 28 | outputs =
|
29 |
| - { |
30 |
| - self, |
31 |
| - nixpkgs, |
32 |
| - flake-utils, |
33 |
| - rust-overlay, |
34 |
| - crane, |
35 |
| - treefmt-nix, |
36 |
| - ... |
| 29 | + { self |
| 30 | + , nixpkgs |
| 31 | + , flake-utils |
| 32 | + , rust-overlay |
| 33 | + , crane |
| 34 | + , treefmt-nix |
| 35 | + , ... |
37 | 36 | }:
|
38 | 37 | flake-utils.lib.eachDefaultSystem (
|
39 | 38 | system:
|
|
66 | 65 | pkgs.darwin.apple_sdk.frameworks.SystemConfiguration
|
67 | 66 | ];
|
68 | 67 |
|
69 |
| - src = fileSetForCrate ../..; |
70 |
| - inherit version; |
| 68 | + src = fileSetForCrate ../..; |
| 69 | + inherit version; |
71 | 70 | };
|
72 | 71 |
|
73 |
| - isClarityWASM = p: lib.hasPrefix "git+https://github.com/stacks-network/clarity-wasm.git" p.source; |
74 |
| - |
75 |
| - cargoVendorDir = craneLib.vendorCargoDeps ( |
76 |
| - baseArgs |
77 |
| - // { |
78 |
| - # Use this function to override crates coming from git dependencies |
79 |
| - overrideVendorGitCheckout = |
80 |
| - ps: drv: |
81 |
| - if lib.any (p: isClarityWASM p) ps then |
82 |
| - drv.overrideAttrs (_old: { |
83 |
| - patches = [ |
84 |
| - (builtins.fetchurl { |
85 |
| - url = "https://github.com/stacks-network/clarity-wasm/pull/627.patch"; |
86 |
| - sha256 = "sha256:161mx1m21770lrsc2lfqlwzyydhy8f9bc7pmqb26rcki7s2ar31r"; |
87 |
| - }) |
88 |
| - ]; |
89 |
| - }) |
90 |
| - else |
91 |
| - # Nothing to change, leave the derivations as is |
92 |
| - drv; |
93 |
| - |
94 |
| - # Use this function to override crates coming from any registry checkout |
95 |
| - overrideVendorCargoPackage = p: drv: drv; |
96 |
| - } |
97 |
| - ); |
| 72 | + isClarityWASM = p: lib.hasPrefix "git+https://github.com/stacks-network/clarity-wasm.git" p.source; |
| 73 | + |
| 74 | + cargoVendorDir = craneLib.vendorCargoDeps ( |
| 75 | + baseArgs |
| 76 | + // { |
| 77 | + # Use this function to override crates coming from git dependencies |
| 78 | + overrideVendorGitCheckout = |
| 79 | + ps: drv: |
| 80 | + if lib.any (p: isClarityWASM p) ps then |
| 81 | + drv.overrideAttrs |
| 82 | + (_old: { |
| 83 | + patches = [ |
| 84 | + (builtins.fetchurl { |
| 85 | + url = "https://github.com/stacks-network/clarity-wasm/pull/627.patch"; |
| 86 | + sha256 = "sha256:161mx1m21770lrsc2lfqlwzyydhy8f9bc7pmqb26rcki7s2ar31r"; |
| 87 | + }) |
| 88 | + ]; |
| 89 | + }) |
| 90 | + else |
| 91 | + # Nothing to change, leave the derivations as is |
| 92 | + drv; |
| 93 | + |
| 94 | + # Use this function to override crates coming from any registry checkout |
| 95 | + overrideVendorCargoPackage = p: drv: drv; |
| 96 | + } |
| 97 | + ); |
98 | 98 |
|
99 | 99 | commonArgs = baseArgs // {
|
100 | 100 | inherit cargoVendorDir;
|
|
188 | 188 | src = fileSetForCrate ../..;
|
189 | 189 | }
|
190 | 190 | );
|
191 |
| - |
| 191 | + |
192 | 192 | treefmt = treefmt-nix.lib.evalModule pkgs (import ./treefmt.nix);
|
193 | 193 | in
|
194 | 194 | with pkgs;
|
|
0 commit comments