Skip to content

Commit

Permalink
setup nix for dev
Browse files Browse the repository at this point in the history
  • Loading branch information
darwin67 committed Sep 9, 2024
1 parent 594a433 commit 27c29e0
Show file tree
Hide file tree
Showing 4 changed files with 92 additions and 1 deletion.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.idea
src
*.iml
coverage.*
coverage.*
/.direnv/
61 changes: 61 additions & 0 deletions flake.lock

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

28 changes: 28 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
description = "goqu";

inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};

outputs = { self, nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = import nixpkgs { inherit system; };

in {
devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
go
golangci-lint
gotests
gomodifytags
gore
gotools

# LSPs
gopls
];
};
});
}

0 comments on commit 27c29e0

Please sign in to comment.