Skip to content

Commit

Permalink
bump golang to 1.23.x, python to 3, and remove asdf .tool-versions (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
tateexon authored Sep 25, 2024
1 parent 1e1e342 commit c5d3c99
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 29 deletions.
7 changes: 0 additions & 7 deletions .tool-versions

This file was deleted.

12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 5 additions & 7 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,20 @@
pkgs = import nixpkgs {
inherit system;
overlays = [ ];
config = {
permittedInsecurePackages = [
"python-2.7.18.8"
];
};
};

# set go version here that will be used in all shells
go = pkgs.go_1_23;

scriptDir = toString ./.; # Converts the flake's root directory to a string

# Importing the shell environments from separate files
fullEnv = pkgs.callPackage ./nix/devshell.nix {
inherit pkgs scriptDir;
inherit pkgs scriptDir go;
};

ciEnv = pkgs.callPackage ./nix/ci-runtests.nix {
inherit pkgs scriptDir;
inherit pkgs scriptDir go;
};
in rec {
devShell = fullEnv;
Expand Down
5 changes: 1 addition & 4 deletions nix/ci-runtests.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{ pkgs, scriptDir }:
{ pkgs, scriptDir, go }:
with pkgs;
let
go = pkgs.go_1_22;
in
mkShell {
nativeBuildInputs = [
bash
Expand Down
7 changes: 2 additions & 5 deletions nix/devshell.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{ pkgs, scriptDir }:
{ pkgs, scriptDir, go }:
with pkgs;
let
go = pkgs.go_1_22;
in
mkShell {
nativeBuildInputs = [
# basics
Expand All @@ -25,7 +22,7 @@ mkShell {
# linting tools
typos
pre-commit
python
python3
shfmt
shellcheck
];
Expand Down

0 comments on commit c5d3c99

Please sign in to comment.