Skip to content

Commit b18a346

Browse files
committed
Nix: fmt
1 parent 12be496 commit b18a346

File tree

1 file changed

+36
-36
lines changed

1 file changed

+36
-36
lines changed

contrib/nix/flake.nix

+36-36
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,13 @@
2626
};
2727

2828
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+
, ...
3736
}:
3837
flake-utils.lib.eachDefaultSystem (
3938
system:
@@ -66,35 +65,36 @@
6665
pkgs.darwin.apple_sdk.frameworks.SystemConfiguration
6766
];
6867

69-
src = fileSetForCrate ../..;
70-
inherit version;
68+
src = fileSetForCrate ../..;
69+
inherit version;
7170
};
7271

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+
);
9898

9999
commonArgs = baseArgs // {
100100
inherit cargoVendorDir;
@@ -188,7 +188,7 @@
188188
src = fileSetForCrate ../..;
189189
}
190190
);
191-
191+
192192
treefmt = treefmt-nix.lib.evalModule pkgs (import ./treefmt.nix);
193193
in
194194
with pkgs;

0 commit comments

Comments
 (0)