Skip to content

Commit

Permalink
Temporary Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeniy-scherbina committed Apr 9, 2024
1 parent 5dc8bab commit 03a01ad
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 17 deletions.
28 changes: 25 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,34 @@ jobs:
- run: |
nix-shell -I nixpkgs=./nix -p test-env --run "make lint-py"
if: env.GIT_DIFF
# gomod2nix:
# name: Check gomod2nix.toml file is up to date
# runs-on: ubuntu-latest
# steps:
# - uses: actions/[email protected]
# - uses: cachix/install-nix-action@v18
# - uses: technote-space/[email protected]
# with:
# PATTERNS: |
# **/**.py
# - name: run gomod2nix
# run: |
# nix run -f ./nix gomod2nix
# git diff --no-ext-diff --exit-code
# if: env.GIT_DIFF
gomod2nix:
name: Check gomod2nix.toml file is up to date
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: cachix/install-nix-action@v18
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v26
with:
nix_path: nixpkgs=channel:nixos-23.11
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v14
with:
name: crypto-ethermint
- uses: technote-space/[email protected]
with:
PATTERNS: |
Expand All @@ -79,4 +101,4 @@ jobs:
run: |
nix run -f ./nix gomod2nix
git diff --no-ext-diff --exit-code
if: env.GIT_DIFF
# if: env.GIT_DIFF
2 changes: 1 addition & 1 deletion gomod2nix.toml
Original file line number Diff line number Diff line change
Expand Up @@ -627,4 +627,4 @@ schema = 3
hash = "sha256-sVQY9EQ9Y5blYyVYfaOa+y12e+399OqdHiEY3BaDnqo="
[mod."sigs.k8s.io/yaml"]
version = "v1.4.0"
hash = "sha256-Hd/M0vIfIVobDd87eb58p1HyVOjYWNlGq2bRXfmtVno="
hash = "sha256-Hd/M0vIfIVobDd87eb58p1HyVOjYWNlGq2bRXfmtVno="
15 changes: 8 additions & 7 deletions nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ import sources.nixpkgs {
};
}) # update to a version that supports eip-1559
# https://github.com/NixOS/nixpkgs/pull/179622
(import ./go_1_20_overlay.nix)
(final: prev:
(import "${sources.gomod2nix}/overlay.nix")
(final // {
inherit (final.darwin.apple_sdk_11_0) callPackage;
})
prev)
# (import ./go_1_20_overlay.nix)
# (final: prev:
# (import "${sources.gomod2nix}/overlay.nix")
# (final // {
# inherit (final.darwin.apple_sdk_11_0) callPackage;
# })
# prev)
(import "${sources.gomod2nix}/overlay.nix")
(pkgs: _:
import ./scripts.nix {
inherit pkgs;
Expand Down
12 changes: 6 additions & 6 deletions nix/sources.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
"homepage": null,
"owner": "tweag",
"repo": "gomod2nix",
"rev": "40d32f82fc60d66402eb0972e6e368aeab3faf58",
"sha256": "0li17ynbg2wg0xqy655m5rmcw905sbv7d4ir35z7s5pg1yhhzxkp",
"rev": "30e3c3a9ec4ac8453282ca7f67fca9e1da12c3e6",
"sha256": "1m0q0p1xidsp61xfrbj8ld1dqk3fhyrfifxj2ks36yjbnzmi1x69",
"type": "tarball",
"url": "https://github.com/tweag/gomod2nix/archive/40d32f82fc60d66402eb0972e6e368aeab3faf58.tar.gz",
"url": "https://github.com/tweag/gomod2nix/archive/30e3c3a9ec4ac8453282ca7f67fca9e1da12c3e6.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"niv": {
Expand All @@ -41,10 +41,10 @@
"homepage": "",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "057f9aecfb71c4437d2b27d3323df7f93c010b7e",
"sha256": "1ndiv385w1qyb3b18vw13991fzb9wg4cl21wglk89grsfsnra41k",
"rev": "86ef6bd96b6279e1a4a53236d341f5df1ede3803",
"sha256": "0mmgk3bg8rqs4mlsaxr5hyvzqn3sg53pqqm1aiwq00kmcnhds7nx",
"type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/057f9aecfb71c4437d2b27d3323df7f93c010b7e.tar.gz",
"url": "https://github.com/NixOS/nixpkgs/archive/86ef6bd96b6279e1a4a53236d341f5df1ede3803.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"poetry2nix": {
Expand Down

0 comments on commit 03a01ad

Please sign in to comment.