Skip to content

Commit 6608159

Browse files
author
HuangYi
committed
fix
1 parent 0d9b969 commit 6608159

File tree

11 files changed

+13
-37
lines changed

11 files changed

+13
-37
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,5 +102,5 @@ jobs:
102102
extra_nix_config: |
103103
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
104104
if: steps.changed-files.outputs.any_changed == 'true'
105-
- run: nix-shell -I nixpkgs=./nix -p nixfmt --run "make lint-nix"
105+
- run: nix-shell -I nixpkgs=./nix -p nixfmt-rfc-style --run "make lint-nix"
106106
if: steps.changed-files.outputs.any_changed == 'true'

flake.nix

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
buildInputs = [
6363
defaultPackage.go
6464
pkgs.gomod2nix
65+
pkgs.nixfmt-rfc-style
6566
];
6667
};
6768
rocksdb = pkgs.mkShell {
@@ -70,11 +71,7 @@
7071
pkgs.rocksdb.tools
7172
];
7273
};
73-
full = pkgs.mkShell {
74-
buildInputs = rocksdb.buildInputs ++ [
75-
pkgs.test-env
76-
];
77-
};
74+
full = pkgs.mkShell { buildInputs = rocksdb.buildInputs ++ [ pkgs.test-env ]; };
7875
};
7976
legacyPackages = pkgs;
8077
}

integration_tests/configs/broken-cronosd.nix

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,5 @@ let
55
cronosd = (pkgs.callPackage ../../. { });
66
in
77
cronosd.overrideAttrs (oldAttrs: {
8-
patches = oldAttrs.patches or [ ] ++ [
9-
./broken-cronosd.patch
10-
];
8+
patches = oldAttrs.patches or [ ] ++ [ ./broken-cronosd.patch ];
119
})

integration_tests/shell.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pkgs.mkShell {
2121
(renameExe pkgs.solc-static-versions.solc_0_6_8 "solc-0.6.8" "solc06")
2222
(renameExe pkgs.solc-static-versions.solc_0_8_21 "solc-0.8.21" "solc08")
2323
pkgs.test-env
24-
pkgs.nixfmt
24+
pkgs.nixfmt-rfc-style
2525
pkgs.rocksdb
2626
pkgs.chain-maind
2727
pkgs.hermes

nix/cosmovisor.nix

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
{
2-
buildGoModule,
3-
fetchFromGitHub,
4-
}:
1+
{ buildGoModule, fetchFromGitHub }:
52

63
let
74
version = "1.5.0";

nix/cronos-matrix.nix

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@ builtins.listToAttrs (
4848
);
4949
value =
5050
let
51-
cronosd = callPackage ../. {
52-
inherit rev network;
53-
};
51+
cronosd = callPackage ../. { inherit rev network; };
5452
bundle = if stdenv.hostPlatform.isWindows then bundle-win-exe cronosd else bundle-exe cronosd;
5553
in
5654
if pkgtype == "bundle" then

nix/dapptools-overlay.nix

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ let
1010
dapptools-patched = self.srcOnly {
1111
name = "dapptools-patched";
1212
src = dapptools-master;
13-
patches = [
14-
./dapptools.patch
15-
];
13+
patches = [ ./dapptools.patch ];
1614
};
1715
in
1816
{

nix/default.nix

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ import sources.nixpkgs {
6363
hermes = pkgs.callPackage ./hermes.nix { src = sources.ibc-rs; };
6464
})
6565
(_: pkgs: { test-env = pkgs.callPackage ./testenv.nix { }; })
66-
(_: pkgs: {
67-
cosmovisor = pkgs.callPackage ./cosmovisor.nix { };
68-
})
66+
(_: pkgs: { cosmovisor = pkgs.callPackage ./cosmovisor.nix { }; })
6967
(_: pkgs: {
7068
rly = pkgs.buildGo121Module rec {
7169
name = "rly";

nix/rocksdb.nix

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,7 @@ stdenv.mkDerivation (finalAttrs: {
5252
"tools"
5353
];
5454

55-
env.NIX_CFLAGS_COMPILE = toString (
56-
lib.optionals stdenv.cc.isClang [
57-
"-faligned-allocation"
58-
]
59-
);
55+
env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.cc.isClang [ "-faligned-allocation" ]);
6056

6157
cmakeFlags = [
6258
"-DPORTABLE=1"

nix/testground-image.nix

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
}:
77
let
88
patched-cronosd = cronos-matrix.cronosd.overrideAttrs (oldAttrs: {
9-
patches = oldAttrs.patches or [ ] ++ [
10-
./testground-cronosd.patch
11-
];
9+
patches = oldAttrs.patches or [ ] ++ [ ./testground-cronosd.patch ];
1210
});
1311
in
1412
let
@@ -36,8 +34,6 @@ dockerTools.buildLayeredImage {
3634
30000
3735
];
3836
Cmd = [ "/bin/stateless-testcase" ];
39-
Env = [
40-
"PYTHONUNBUFFERED=1"
41-
];
37+
Env = [ "PYTHONUNBUFFERED=1" ];
4238
};
4339
}

0 commit comments

Comments
 (0)