-
Notifications
You must be signed in to change notification settings - Fork 894
chore: Add nix shell for simple development setup #3399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
693f23e
chore: Add nix shell for simple development setup
kylecarbs 98a015f
improve nix style, flake output schema
cmoog a07030d
fix error message
kylecarbs c02d6f8
Update scripts/build_go_slim.sh
kylecarbs 26ca21c
Update scripts/build_go_slim.sh
kylecarbs 44503c6
Add UTC default for timezone and remove unnecessary goreleaser depend…
kylecarbs 873f0da
Skip TZ test if localtime does not exist
kylecarbs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next
Next commit
chore: Add nix shell for simple development setup
This enables contributors using Nix to set up their environment with ease.
- Loading branch information
commit 693f23e08609fc57fef7bd263d9dc576aba02274
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
use nix | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
description = "Development environments on your infrastructure"; | ||
|
||
inputs = { | ||
nixpkgs-unstable.url = "nixpkgs/nixos-unstable"; | ||
flake-utils.url = "github:numtide/flake-utils"; | ||
drpc = { | ||
url = "github:storj/drpc"; | ||
inputs = { | ||
nixpkgs.follows = "nixpkgs-unstable"; | ||
flake-utils.follows = "flake-utils"; | ||
}; | ||
}; | ||
}; | ||
|
||
outputs = { self, nixpkgs-unstable, flake-utils, drpc }: | ||
flake-utils.lib.eachDefaultSystem (system: | ||
with nixpkgs-unstable.legacyPackages.${system}; rec { | ||
devShell = | ||
let devtools = {}; | ||
in mkShell { | ||
buildInputs = [ | ||
drpc.defaultPackage.${system} | ||
]; | ||
nativeBuildInputs = [ | ||
go_1_19 | ||
gopls | ||
nodejs | ||
ripgrep | ||
exa | ||
bat | ||
typos | ||
git | ||
nfpm | ||
openssl | ||
protoc-gen-go | ||
go-migrate | ||
gotestsum | ||
goreleaser | ||
sqlc | ||
shfmt | ||
terraform | ||
shellcheck | ||
golangci-lint | ||
yarn | ||
postgresql | ||
helm | ||
jq | ||
zstd | ||
zip | ||
openssh | ||
nodePackages.typescript | ||
nodePackages.typescript-language-server | ||
]; | ||
}; | ||
}); | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
(import ( | ||
fetchTarball { | ||
url = "https://github.com/edolstra/flake-compat/archive/12c64ca55c1014cdc1b16ed5a804aa8576601ff2.tar.gz"; | ||
sha256 = "0jm6nzb83wa6ai17ly9fzpqc40wg1viib8klq8lby54agpl213w5"; } | ||
) { | ||
src = ./.; | ||
}).shellNix |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.