Skip to content

Commit

Permalink
chore: switch over to using nix flakes (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
purpleclay authored May 4, 2024
1 parent 95c81bd commit 19d8b8b
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 37 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
File renamed without changes.
52 changes: 27 additions & 25 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,29 +1,31 @@
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib
/nsv
# Ignore everything and selectively allow files
*

# Test binary, built with `go test -c`
*.test
# Allow project files
!.deepsource.toml
!.github/**/*
!.gitignore
!.golangci.yml
!.goreleaser.yml
!CODEOWNERS
!CODE_OF_CONDUCT.md
!Dockerfile
!htmltest.yml
!LICENSE
!mkdocs.yml
!README.md
!Taskfile.yml

# Output of the go coverage tool, specifically when used with LiteIDE
*.out
unittest-cover.txt
# Allow Nix files
!.envrc
!flake.nix
!flake.lock

# Dependency directories (remove the comment below to include it)
# vendor/
# Allow Go files
!*.go
!*.tape
!go.sum
!go.mod

# GoReleaser
completions/
dist/
manpages/

# Ignore IDEs
.vscode

# Material for MkDocs
.cache
.DS_Store
# Recurse through sub-directories applying the same patterns
!*/
18 changes: 9 additions & 9 deletions flake.lock

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

5 changes: 3 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
description = "Semantic versioning without any config";

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

Expand All @@ -16,10 +16,11 @@
devShells.default = mkShell {
buildInputs = [
git
go
go_1_22
gofumpt
golangci-lint
go-task
vhs
];
};
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/purpleclay/nsv

go 1.21
go 1.22.2

require (
github.com/Masterminds/semver/v3 v3.2.1
Expand Down

0 comments on commit 19d8b8b

Please sign in to comment.