Compare commits
49 commits
Author | SHA1 | Date | |
---|---|---|---|
|
b1b35942d4 | ||
|
1e558259f6 | ||
|
3b4ccaafb0 | ||
|
3a4f18afee | ||
|
af9f09b584 | ||
|
6c6e0738e8 | ||
|
13fc1faf8d | ||
|
2ee4ca78ce | ||
|
56ace5fe40 | ||
|
371809eea9 | ||
|
69b4904bb6 | ||
|
53f62b91c0 | ||
|
e4cffacb95 | ||
|
df51e76d3a | ||
|
ab755c86bf | ||
|
89ab4c3423 | ||
|
c0a10971eb | ||
|
17a01c700d | ||
|
1c056ee874 | ||
|
352b7a0e17 | ||
|
0035ccfff6 | ||
|
751ca00840 | ||
|
5a0458c0b7 | ||
|
5efb27e62b | ||
|
a86cfe9314 | ||
|
c0a5ff7d75 | ||
|
6bf07c9619 | ||
|
cbb47e6c2e | ||
|
0a6ced660d | ||
|
798a8cb502 | ||
|
2b9c069b54 | ||
|
a834f67cca | ||
|
860849935a | ||
|
3d7540e3d0 | ||
|
8a6b58aea7 | ||
|
637e74f22f | ||
|
b7ec01dfe7 | ||
|
a39ea0fc5a | ||
|
be8d8f6803 | ||
|
05f27940a3 | ||
|
44e27c3ca6 | ||
|
bcc64fb7bd | ||
|
902ed54822 | ||
|
709ae72897 | ||
|
b0217e58ff | ||
|
1d422864cc | ||
|
0f221053a1 | ||
|
75ef7f544d | ||
|
4e96eb7733 |
261
README.md
261
README.md
|
@ -22,40 +22,45 @@ nix flake new --template github:the-nix-way/dev-templates#rust ${NEW_PROJECT_DIR
|
||||||
|
|
||||||
Once your preferred template has been initialized, you can use the provided shell in two ways:
|
Once your preferred template has been initialized, you can use the provided shell in two ways:
|
||||||
|
|
||||||
1. If you have [`nix-direnv`][nix-direnv] installed, you can initialize the environment by running `direnv allow`.
|
1. If you have installed, you can initialize the environment by running `direnv allow`.
|
||||||
2. If you don't have `nix-direnv` installed, you can run `nix develop` to open up the Nix-defined shell.
|
2. If you don't have `nix-direnv` installed, you can run `nix develop` to open up the Nix-defined shell.
|
||||||
|
|
||||||
## Available templates
|
## Available templates
|
||||||
|
|
||||||
| Language/framework/tool | Template |
|
| Language/framework/tool | Template |
|
||||||
| :----------------------- | :-----------------------------|
|
| :--------------------------- | :--------------------------- |
|
||||||
| [Clojure] | [`clojure`](./clojure/) |
|
| [Clojure][Clojure] | [`clojure`](./clojure/) |
|
||||||
| [C#][csharp] | [`csharp`](./csharp/) |
|
| [C#][csharp] | [`csharp`](./csharp/) |
|
||||||
| [Cue] | [`cue`](./cue/) |
|
| [Cue][Cue] | [`cue`](./cue/) |
|
||||||
| [Dhall] | [`dhall`](./dhall/) |
|
| [Dhall][Dhall] | [`dhall`](./dhall/) |
|
||||||
| [Elixir] | [`elixir`](./elixir/) |
|
| [Elixir][Elixir] | [`elixir`](./elixir/) |
|
||||||
| [Elm] | [`elm`](./elm/) |
|
| [Elm][Elm] | [`elm`](./elm/) |
|
||||||
| [Gleam] | [`gleam`](./gleam/) |
|
| Empty (change at will) | [`empty`](./empty) |
|
||||||
| [Go] | [`go`](./go/) |
|
| [Gleam][Gleam] | [`gleam`](./gleam/) |
|
||||||
| [Hashicorp] tools | [`hashi`](./hashi/) |
|
| [Go][Go] | [`go`](./go/) |
|
||||||
| [Java] | [`java`](./java/) |
|
| [Hashicorp][Hashicorp] tools | [`hashi`](./hashi/) |
|
||||||
| [Kotlin] | [`kotlin`](./kotlin/) |
|
| [Haxe][Haxe] | [`haxe`](./haxe/) |
|
||||||
| [LaTeX] | [`latex`](./latex/) |
|
| [Java][Java] | [`java`](./java/) |
|
||||||
| [Nickel] | [`nickel`](./nickel/) |
|
| [Jupyter] | [`jupyter`](./jupyter/) |
|
||||||
| [Nim] | [`nim`](./nim/) |
|
| [Kotlin][Kotlin] | [`kotlin`](./kotlin/) |
|
||||||
| [Nix] | [`nix`](./nix/) |
|
| [LaTeX][LaTeX] | [`latex`](./latex/) |
|
||||||
| [Node.js][node] | [`node`](./node/) |
|
| [Nickel][Nickel] | [`nickel`](./nickel/) |
|
||||||
| [OCaml] | [`ocaml`](./ocaml/) |
|
| [Nim][Nim] | [`nim`](./nim/) |
|
||||||
| [Open Policy Agent][opa] | [`opa`](./opa) |
|
| [Nix][Nix] | [`nix`](./nix/) |
|
||||||
| [PHP] | [`php`](./php/) |
|
| [Node.js][node] | [`node`](./node/) |
|
||||||
| [Protobuf] | [`protobuf`](./protobuf/) |
|
| [OCaml][OCaml] | [`ocaml`](./ocaml/) |
|
||||||
| [Pulumi] | [`pulumi`](./pulumi/) |
|
| [Open Policy Agent][opa] | [`opa`](./opa) |
|
||||||
| [Purescript] | [`purescript`](./purescript/) |
|
| [PHP][PHP] | [`php`](./php/) |
|
||||||
| [Ruby] | [`ruby`](./ruby/) |
|
| [Protobuf][Protobuf] | [`protobuf`](./protobuf/) |
|
||||||
| [Rust] | [`rust`](./rust/) |
|
| [Pulumi][Pulumi] | [`pulumi`](./pulumi/) |
|
||||||
| [Scala] | [`scala`](./scala/) |
|
| [Purescript][Purescript] | [`purescript`](./purescript/) |
|
||||||
| [Shell] | [`shell`](./shell/) |
|
| [Ruby][Ruby] | [`ruby`](./ruby/) |
|
||||||
| [Zig] | [`zig`](./zig/) |
|
| [Rust][Rust] | [`rust`](./rust/) |
|
||||||
|
| [RustPython][Rust] | [`rustpython`](./rustpython/) |
|
||||||
|
| [Scala][Scala] | [`scala`](./scala/) |
|
||||||
|
| [Shell] | [`shell`](./shell/) |
|
||||||
|
| [Vlang][Vlang] | [`vlang`](./vlang/) |
|
||||||
|
| [Zig][Zig] | [`zig`](./zig/) |
|
||||||
|
|
||||||
## Template contents
|
## Template contents
|
||||||
|
|
||||||
|
@ -63,132 +68,141 @@ The sections below list what each template includes. In all cases, you're free t
|
||||||
|
|
||||||
### [`clojure`](./clojure/)
|
### [`clojure`](./clojure/)
|
||||||
|
|
||||||
- [Clojure] 1.11.1.1347
|
- [Clojure][Clojure] 1.11.1.1347
|
||||||
- [Boot] 2.8.3
|
- [Boot][Boot] 2.8.3
|
||||||
- [Leiningen] 2.10.0
|
- [Leiningen][Leiningen] 2.10.0
|
||||||
|
|
||||||
### [`csharp`](./csharp/)
|
### [`csharp`](./csharp/)
|
||||||
|
|
||||||
- [dotnet] sdk 7 (7.0.305)
|
- [dotnet][dotnet] sdk 7 (7.0.305)
|
||||||
- [omnisharp-roslyn]
|
- [omnisharp-roslyn][omnisharp-roslyn]
|
||||||
- [Mono] 6.12.0.182
|
- [Mono][Mono] 6.12.0.182
|
||||||
- [msbuild] 16.10.1
|
- [msbuild][msbuild] 16.10.1
|
||||||
|
|
||||||
### [`cue`](./cue/)
|
### [`cue`](./cue/)
|
||||||
|
|
||||||
- [Cue] 0.5.0
|
- [Cue][Cue] 0.5.0
|
||||||
|
|
||||||
### [`dhall`](./dhall)
|
### [`dhall`](./dhall)
|
||||||
|
|
||||||
- [Dhall] 1.41.2
|
- [Dhall][Dhall] 1.41.2
|
||||||
- [dhall-bash]
|
- [dhall-bash][dhall-bash]
|
||||||
- [dhall-docs]
|
- [dhall-docs][dhall-docs]
|
||||||
- [dhall-json]
|
- [dhall-json][dhall-json]
|
||||||
- [dhall-lsp-server]
|
- [dhall-lsp-server][dhall-lsp-server]
|
||||||
- [dhall-nix]
|
- [dhall-nix][dhall-nix]
|
||||||
- [dhall-nixpkgs]
|
- [dhall-nixpkgs][dhall-nixpkgs]
|
||||||
- [dhall-openapi]
|
- [dhall-openapi][dhall-openapi]
|
||||||
- [dhall-toml]
|
- [dhall-toml][dhall-toml]
|
||||||
- [dhall-yaml]
|
- [dhall-yaml][dhall-yaml]
|
||||||
|
|
||||||
### [`elixir`](./elixir/)
|
### [`elixir`](./elixir/)
|
||||||
|
|
||||||
- [Elixir] 1.14.5, including [mix] and [IEx]
|
- [Elixir][Elixir] 1.14.5, including [mix][mix] and [IEx][IEx]
|
||||||
- [gigalixir] (Linux only)
|
- [gigalixir][gigalixir] (Linux only)
|
||||||
|
|
||||||
### [`elm`](./elm/)
|
### [`elm`](./elm/)
|
||||||
|
|
||||||
- [Elm] 0.19.1
|
- [Elm][Elm] 0.19.1
|
||||||
- [elm2nix]
|
- [elm2nix][elm2nix]
|
||||||
|
|
||||||
|
### [Empty](./empty/)
|
||||||
|
|
||||||
|
A dev template that's fully customizable.
|
||||||
|
|
||||||
### [`gleam`](./gleam/)
|
### [`gleam`](./gleam/)
|
||||||
|
|
||||||
- [Gleam] 0.30.0
|
- [Gleam][Gleam] 0.30.0
|
||||||
|
|
||||||
### [`go`](./go/)
|
### [`go`](./go/)
|
||||||
|
|
||||||
- [Go] 1.20.5
|
- [Go][Go] 1.20.5
|
||||||
- Standard Go tools ([goimports], [godoc], and others)
|
- Standard Go tools ([goimports][goimports], [godoc][godoc], and others)
|
||||||
- [golangci-lint]
|
- [golangci-lint][golangci-lint]
|
||||||
|
|
||||||
### [`hashi`](./hashi/)
|
### [`hashi`](./hashi/)
|
||||||
|
|
||||||
- [Packer] 1.8.6
|
- [Packer][Packer] 1.8.6
|
||||||
- [Terraform] 1.5.2
|
- [Terraform][Terraform] 1.5.2
|
||||||
- [Nomad] 1.4.6
|
- [Nomad][Nomad] 1.4.6
|
||||||
- [Vault] 1.13.3
|
- [Vault][Vault] 1.13.3
|
||||||
- [nomad-autoscaler] 0.3.6-dev
|
- [nomad-autoscaler][nomad-autoscaler] 0.3.6-dev
|
||||||
- [nomad-pack] 0.0.1-techpreview.3
|
- [nomad-pack][nomad-pack] 0.0.1-techpreview.3
|
||||||
- [levant] 0.3.2-dev
|
- [levant][levant] 0.3.2-dev
|
||||||
- [damon]
|
- [damon][damon]
|
||||||
- [Terragrunt] 0.45.13
|
- [Terragrunt][Terragrunt] 0.45.13
|
||||||
- [tflint] 0.46.1
|
- [tflint][tflint] 0.46.1
|
||||||
|
|
||||||
### [`haskell`](./haskell/)
|
### [`haskell`](./haskell/)
|
||||||
|
|
||||||
- [GHC][haskell] 9.2.8
|
- [GHC][haskell] 9.2.8
|
||||||
- [cabal] 3.10.1.0
|
- [cabal][cabal] 3.10.1.0
|
||||||
|
|
||||||
|
### [`haxe`](./haxe/)
|
||||||
|
|
||||||
|
- [Haxe][Haxe] 4.2.5
|
||||||
|
|
||||||
### [`java`](./java)
|
### [`java`](./java)
|
||||||
|
|
||||||
- [Java] 20.0.1+9
|
- [Java][Java] 20.0.1+9
|
||||||
- [Maven] 3.9.2
|
- [Maven][Maven] 3.9.2
|
||||||
- [Gradle] 9.0.1
|
- [Gradle][Gradle] 9.0.1
|
||||||
|
- [jdtls][jdtls] 1.31.0
|
||||||
|
|
||||||
### [`kotlin`](./kotlin/)
|
### [`kotlin`](./kotlin/)
|
||||||
|
|
||||||
- [Kotlin] 1.9.0
|
- [Kotlin][Kotlin] 1.9.0
|
||||||
- [Gradle] 8.0.1
|
- [Gradle][Gradle] 8.0.1
|
||||||
|
|
||||||
### [`latex`](./latex/)
|
### [`latex`](./latex/)
|
||||||
|
|
||||||
- [texlive]
|
- [texlive][texlive]
|
||||||
- [tectonic]
|
- [tectonic][tectonic]
|
||||||
- [texlab]
|
- [texlab][texlab]
|
||||||
|
|
||||||
### [`nickel`](./nickel/)
|
### [`nickel`](./nickel/)
|
||||||
|
|
||||||
- [Nickel] 0.2.0
|
- [Nickel][Nickel] 0.2.0
|
||||||
|
|
||||||
### [`nim`](./nim)
|
### [`nim`](./nim)
|
||||||
|
|
||||||
- [Nim] 1.6.14
|
- [Nim][Nim] 1.6.14
|
||||||
- [nimble] 0.14.2
|
- [nimble][nimble] 0.14.2
|
||||||
|
|
||||||
### [`nix`](./nix/)
|
### [`nix`](./nix/)
|
||||||
|
|
||||||
- [Cachix] 1.6
|
- [Cachix][Cachix] 1.6
|
||||||
- [dhall-to-nix] 1.1.25
|
- [dhall-to-nix][dhall-to-nix] 1.1.25
|
||||||
- [lorri] 1.6.0
|
- [lorri][lorri] 1.6.0
|
||||||
- [niv] 0.2.22
|
- [niv][niv] 0.2.22
|
||||||
- [nixfmt] 0.5.0
|
- [nixfmt][nixfmt] 0.5.0
|
||||||
- [statix] 0.5.6
|
- [statix][statix] 0.5.6
|
||||||
- [vulnix]
|
- [vulnix][vulnix]
|
||||||
|
|
||||||
### [`node`](./node/)
|
### [`node`](./node/)
|
||||||
|
|
||||||
- [Node.js][node] 18.16.1
|
- [Node.js][node] 18.16.1
|
||||||
- [npm] 9.5.1
|
- [npm][npm] 9.5.1
|
||||||
- [pnpm] 8.6.6
|
- [pnpm][pnpm] 8.6.6
|
||||||
- [Yarn] 1.22.19
|
- [Yarn][Yarn] 1.22.19
|
||||||
- [node2nix] 1.11.1
|
- [node2nix][node2nix] 1.11.1
|
||||||
|
|
||||||
### [`ocaml`](./ocaml/)
|
### [`ocaml`](./ocaml/)
|
||||||
|
|
||||||
- [OCaml] 4.14.1
|
- [OCaml][OCaml] 4.14.1
|
||||||
- [Dune] 3.9.1
|
- [Dune][Dune] 3.9.1
|
||||||
- [odoc] 2.2.0
|
- [odoc][odoc] 2.2.0
|
||||||
- [ocamlformat] 0.25.1
|
- [ocamlformat][ocamlformat] 0.25.1
|
||||||
|
|
||||||
### [`opa`](./opa/)
|
### [`opa`](./opa/)
|
||||||
|
|
||||||
- [Open Policy Agent][opa] 0.54.0
|
- [Open Policy Agent][opa] 0.54.0
|
||||||
- [Conftest] 0.44.0
|
- [Conftest][Conftest] 0.44.0
|
||||||
|
|
||||||
### [`php`](./php/)
|
### [`php`](./php/)
|
||||||
|
|
||||||
- [PHP] 8.2.8
|
- [PHP][PHP] 8.2.8
|
||||||
- [Composer] 2.5.8
|
- [Composer][Composer] 2.5.8
|
||||||
|
|
||||||
### [`protobuf`](./protobuf/)
|
### [`protobuf`](./protobuf/)
|
||||||
|
|
||||||
|
@ -197,59 +211,61 @@ The sections below list what each template includes. In all cases, you're free t
|
||||||
|
|
||||||
### [`pulumi`](./pulumi/)
|
### [`pulumi`](./pulumi/)
|
||||||
|
|
||||||
- [Pulumi] 3.72.1
|
- [Pulumi][Pulumi] 3.72.1
|
||||||
- [Python] 3.11.4
|
- [Python][Python] 3.11.4
|
||||||
- [Go] 1.20.5
|
- [Go][Go] 1.20.5
|
||||||
- [Node.js][node] 18.16.1
|
- [Node.js][node] 18.16.1
|
||||||
- [dotnet] sdk 6
|
- [dotnet][dotnet] sdk 6
|
||||||
- [Java] 19.0.1 and [Maven] 3.9.2
|
- [Java][Java] 19.0.1 and [Maven][Maven] 3.9.2
|
||||||
- [jq] 1.6
|
- [jq][jq] 1.6
|
||||||
|
|
||||||
### [`purescript`](./purescript/)
|
### [`purescript`](./purescript/)
|
||||||
|
|
||||||
- [Purescript] (purs) 0.15.9
|
- [Purescript][Purescript] (purs) 0.15.9
|
||||||
- [Spago] 0.21.0
|
- [Spago][Spago] 0.21.0
|
||||||
- [purescript-language-server] 0.17.1
|
- [purescript-language-server][purescript-language-server] 0.17.1
|
||||||
- [purs-tidy] 0.10.0
|
- [purs-tidy][purs-tidy] 0.10.0
|
||||||
|
|
||||||
### [`python`](./python/)
|
### [`python`](./python/)
|
||||||
|
|
||||||
- [Python] 3.11.4
|
- [Python][Python] 3.11.4
|
||||||
- [pip] 23.0.1
|
- [pip][pip] 23.0.1
|
||||||
- [Virtualenv] 20.19.0
|
|
||||||
|
|
||||||
### [`ruby`](./ruby/)
|
### [`ruby`](./ruby/)
|
||||||
|
|
||||||
- [Ruby] 3.2.2, plus the standard Ruby tools (`bundle`, `gem`, etc.)
|
- [Ruby][Ruby] 3.2.2, plus the standard Ruby tools (`bundle`, `gem`, etc.)
|
||||||
|
|
||||||
### [`rust`](./rust/)
|
### [`rust`](./rust/)
|
||||||
|
|
||||||
- [Rust], including [cargo], [Clippy], and the other standard tools. The Rust version is determined as follows, in order:
|
- [Rust][Rust], including [cargo][cargo], [Clippy][Clippy], and the other standard tools. The Rust version is determined as follows, in order:
|
||||||
|
|
||||||
- From the `rust-toolchain.toml` file if present
|
- From the `rust-toolchain.toml` file if present
|
||||||
- From the `rust-toolchain` file if present
|
- From the `rust-toolchain` file if present
|
||||||
- Version 1.70.0 if neither is present
|
- Version 1.70.0 if neither is present
|
||||||
|
- [rust-analyzer][rust-analyzer] 2023-07-10
|
||||||
- [rust-analyzer] 2023-07-10
|
- [cargo-audit][cargo-audit] 0.17.0
|
||||||
- [cargo-audit] 0.17.0
|
- [cargo-deny][cargo-deny] 0.12.1
|
||||||
- [cargo-deny] 0.12.1
|
|
||||||
|
|
||||||
### [`scala`](./scala/)
|
### [`scala`](./scala/)
|
||||||
|
|
||||||
- [Scala] 2.13.11 ([Java] 19.0.1)
|
- [Scala][Scala] 2.13.11 ([Java][Java] 19.0.1)
|
||||||
- [sbt] 1.9.2
|
- [sbt][sbt] 1.9.2
|
||||||
|
|
||||||
### [`shell`](./shell/)
|
### [`shell`](./shell/)
|
||||||
|
|
||||||
- [shellcheck] 0.9.0
|
- [shellcheck][shellcheck] 0.9.0
|
||||||
|
|
||||||
|
### [`Vlang`](./vlang/)
|
||||||
|
|
||||||
|
- [Vlang][Vlang] 0.4.4
|
||||||
|
|
||||||
### [`zig`](./zig/)
|
### [`zig`](./zig/)
|
||||||
|
|
||||||
- [Zig] 0.10.1
|
- [Zig][Zig] 0.10.1
|
||||||
|
|
||||||
## Code organization
|
## Code organization
|
||||||
|
|
||||||
All of the templates have only the root [flake](./flake.nix) as a flake input. That root flake provides a common revision of [Nixpkgs] and [`flake-utils`][flake-utils] to all the templates.
|
All of the templates have only the root [flake](./flake.nix) as a flake input. That root flake provides a common revision of [Nixpkgs][Nixpkgs] and to all the templates.
|
||||||
|
|
||||||
[boot]: https://www.boot-clj.com
|
[boot]: https://www.boot-clj.com
|
||||||
[buf]: https://github.com/bufbuild/buf
|
[buf]: https://github.com/bufbuild/buf
|
||||||
|
@ -291,8 +307,10 @@ All of the templates have only the root [flake](./flake.nix) as a flake input. T
|
||||||
[gradle]: https://gradle.org
|
[gradle]: https://gradle.org
|
||||||
[hashicorp]: https://hashicorp.com
|
[hashicorp]: https://hashicorp.com
|
||||||
[haskell]: https://haskell.org
|
[haskell]: https://haskell.org
|
||||||
|
[haxe]: https://haxe.org/
|
||||||
[iex]: https://hexdocs.pm/iex/IEx.html
|
[iex]: https://hexdocs.pm/iex/IEx.html
|
||||||
[java]: https://java.com
|
[java]: https://java.com
|
||||||
|
[jdtls]: https://projects.eclipse.org/projects/eclipse.jdt.ls
|
||||||
[jq]: https://jqlang.github.io/jq
|
[jq]: https://jqlang.github.io/jq
|
||||||
[kotlin]: https://kotlinlang.org
|
[kotlin]: https://kotlinlang.org
|
||||||
[latex]: https://www.latex-project.org/
|
[latex]: https://www.latex-project.org/
|
||||||
|
@ -349,8 +367,7 @@ All of the templates have only the root [flake](./flake.nix) as a flake input. T
|
||||||
[texlive]: https://www.tug.org/texlive/
|
[texlive]: https://www.tug.org/texlive/
|
||||||
[tflint]: https://github.com/terraform-linters/tflint
|
[tflint]: https://github.com/terraform-linters/tflint
|
||||||
[vault]: https://www.vaultproject.io
|
[vault]: https://www.vaultproject.io
|
||||||
[virtualenv]: https://pypi.org/project/virtualenv
|
|
||||||
[vulnix]: https://github.com/flyingcircusio/vulnix
|
[vulnix]: https://github.com/flyingcircusio/vulnix
|
||||||
[yarn]: https://yarnpkg.com
|
[yarn]: https://yarnpkg.com
|
||||||
|
[vlang]: https://vlang.io/
|
||||||
[zig]: https://ziglang.org
|
[zig]: https://ziglang.org
|
||||||
|
|
||||||
|
|
|
@ -2,12 +2,10 @@
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1703013332,
|
"lastModified": 1717196966,
|
||||||
"narHash": "sha256-+tFNwMvlXLbJZXiMHqYq77z/RfmpfpiI3yjL6o/Zo9M=",
|
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=",
|
||||||
"rev": "54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6",
|
|
||||||
"revCount": 561409,
|
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
"url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.561409%2Brev-54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6/018c8732-ea5c-725f-a6c9-9ed48683aa5a/source.tar.gz"
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
|
|
|
@ -2,12 +2,10 @@
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1703013332,
|
"lastModified": 1717196966,
|
||||||
"narHash": "sha256-+tFNwMvlXLbJZXiMHqYq77z/RfmpfpiI3yjL6o/Zo9M=",
|
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=",
|
||||||
"rev": "54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6",
|
|
||||||
"revCount": 561409,
|
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
"url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.561409%2Brev-54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6/018c8732-ea5c-725f-a6c9-9ed48683aa5a/source.tar.gz"
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
|
|
|
@ -2,12 +2,10 @@
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1703013332,
|
"lastModified": 1717196966,
|
||||||
"narHash": "sha256-+tFNwMvlXLbJZXiMHqYq77z/RfmpfpiI3yjL6o/Zo9M=",
|
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=",
|
||||||
"rev": "54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6",
|
|
||||||
"revCount": 561409,
|
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
"url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.561409%2Brev-54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6/018c8732-ea5c-725f-a6c9-9ed48683aa5a/source.tar.gz"
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
|
|
|
@ -2,12 +2,10 @@
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1703013332,
|
"lastModified": 1717196966,
|
||||||
"narHash": "sha256-+tFNwMvlXLbJZXiMHqYq77z/RfmpfpiI3yjL6o/Zo9M=",
|
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=",
|
||||||
"rev": "54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6",
|
|
||||||
"revCount": 561409,
|
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
"url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.561409%2Brev-54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6/018c8732-ea5c-725f-a6c9-9ed48683aa5a/source.tar.gz"
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
|
|
|
@ -2,12 +2,10 @@
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1703013332,
|
"lastModified": 1717196966,
|
||||||
"narHash": "sha256-+tFNwMvlXLbJZXiMHqYq77z/RfmpfpiI3yjL6o/Zo9M=",
|
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=",
|
||||||
"rev": "54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6",
|
|
||||||
"revCount": 561409,
|
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
"url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.561409%2Brev-54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6/018c8732-ea5c-725f-a6c9-9ed48683aa5a/source.tar.gz"
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
|
|
|
@ -15,10 +15,12 @@
|
||||||
default = pkgs.mkShell {
|
default = pkgs.mkShell {
|
||||||
packages = (with pkgs; [ elixir ]) ++
|
packages = (with pkgs; [ elixir ]) ++
|
||||||
# Linux only
|
# Linux only
|
||||||
pkgs.lib.optionals (pkgs.stdenv.isLinux) (with pkgs; [ gigalixir inotify-tools libnotify ]) ++
|
(pkgs.lib.optionals (pkgs.stdenv.isLinux)
|
||||||
|
(with pkgs; [ gigalixir inotify-tools libnotify ])) ++
|
||||||
# macOS only
|
# macOS only
|
||||||
pkgs.lib.optionals (pkgs.stdenv.isDarwin) (with pkgs; [ terminal-notifier ]) ++
|
pkgs.lib.optionals (pkgs.stdenv.isDarwin)
|
||||||
(with pkgs.darwin.apple_sdk.frameworks; [ CoreFoundation CoreServices ]);
|
((with pkgs; [ terminal-notifier ]) ++
|
||||||
|
(with pkgs.darwin.apple_sdk.frameworks; [ CoreFoundation CoreServices ]));
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,12 +2,10 @@
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1703013332,
|
"lastModified": 1717196966,
|
||||||
"narHash": "sha256-+tFNwMvlXLbJZXiMHqYq77z/RfmpfpiI3yjL6o/Zo9M=",
|
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=",
|
||||||
"rev": "54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6",
|
|
||||||
"revCount": 561409,
|
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
"url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.561409%2Brev-54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6/018c8732-ea5c-725f-a6c9-9ed48683aa5a/source.tar.gz"
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
|
|
23
empty/flake.lock
Normal file
23
empty/flake.lock
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
{
|
||||||
|
"nodes": {
|
||||||
|
"nixpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1717196966,
|
||||||
|
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=",
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": "root",
|
||||||
|
"version": 7
|
||||||
|
}
|
39
empty/flake.nix
Normal file
39
empty/flake.nix
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
{
|
||||||
|
description = "An empty flake template that you can adapt to your own environment";
|
||||||
|
|
||||||
|
# Flake inputs
|
||||||
|
inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz";
|
||||||
|
|
||||||
|
# Flake outputs
|
||||||
|
outputs = { self, nixpkgs }:
|
||||||
|
let
|
||||||
|
# The systems supported for this flake
|
||||||
|
supportedSystems = [
|
||||||
|
"x86_64-linux" # 64-bit Intel/AMD Linux
|
||||||
|
"aarch64-linux" # 64-bit ARM Linux
|
||||||
|
"x86_64-darwin" # 64-bit Intel macOS
|
||||||
|
"aarch64-darwin" # 64-bit ARM macOS
|
||||||
|
];
|
||||||
|
|
||||||
|
# Helper to provide system-specific attributes
|
||||||
|
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
|
||||||
|
pkgs = import nixpkgs { inherit system; };
|
||||||
|
});
|
||||||
|
in
|
||||||
|
{
|
||||||
|
devShells = forEachSupportedSystem ({ pkgs }: {
|
||||||
|
default = pkgs.mkShell {
|
||||||
|
# The Nix packages provided in the environment
|
||||||
|
# Add any you need here
|
||||||
|
packages = with pkgs; [ ];
|
||||||
|
|
||||||
|
# Set any environment variables for your dev shell
|
||||||
|
env = { };
|
||||||
|
|
||||||
|
# Add any shell logic you want executed any time the environment is activated
|
||||||
|
shellHook = ''
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
});
|
||||||
|
};
|
||||||
|
}
|
|
@ -2,11 +2,11 @@
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1689261696,
|
"lastModified": 1713805509,
|
||||||
"narHash": "sha256-LzfUtFs9MQRvIoQ3MfgSuipBVMXslMPH/vZ+nM40LkA=",
|
"narHash": "sha256-YgSEan4CcrjivCNO5ZNzhg7/8ViLkZ4CB/GrGBVSudo=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "df1eee2aa65052a18121ed4971081576b25d6b5c",
|
"rev": "1e1dc66fe68972a76679644a5577828b6a7e8be4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
146
flake.nix
146
flake.nix
|
@ -3,63 +3,97 @@
|
||||||
|
|
||||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||||
|
|
||||||
outputs = { self, nixpkgs }:
|
outputs = {
|
||||||
let
|
self,
|
||||||
overlays = [
|
nixpkgs,
|
||||||
(final: prev:
|
}: let
|
||||||
let
|
overlays = [
|
||||||
exec = pkg: "${prev.${pkg}}/bin/${pkg}";
|
(final: prev: let
|
||||||
in
|
getSystem = "SYSTEM=$(nix eval --impure --raw --expr 'builtins.currentSystem')";
|
||||||
{
|
forEachDir = exec: ''
|
||||||
format = prev.writeScriptBin "format" ''
|
for dir in */; do
|
||||||
${exec "nixpkgs-fmt"} **/*.nix
|
(
|
||||||
'';
|
cd "''${dir}"
|
||||||
dvt = prev.writeScriptBin "dvt" ''
|
|
||||||
if [ -z $1 ]; then
|
|
||||||
echo "no template specified"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
TEMPLATE=$1
|
${exec}
|
||||||
|
)
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
in {
|
||||||
|
format = final.writeShellApplication {
|
||||||
|
name = "format";
|
||||||
|
runtimeInputs = with final; [nixpkgs-fmt];
|
||||||
|
text = "nixpkgs-fmt '**/*.nix'";
|
||||||
|
};
|
||||||
|
|
||||||
${exec "nix"} \
|
# only run this locally, as Actions will run out of disk space
|
||||||
--experimental-features 'nix-command flakes' \
|
build = final.writeShellApplication {
|
||||||
flake init \
|
name = "build";
|
||||||
--template \
|
text = ''
|
||||||
"github:the-nix-way/dev-templates#''${TEMPLATE}"
|
${getSystem}
|
||||||
'';
|
|
||||||
update = prev.writeScriptBin "update" ''
|
${forEachDir ''
|
||||||
for dir in `ls -d */`; do # Iterate through all the templates
|
echo "building ''${dir}"
|
||||||
(
|
nix build ".#devShells.''${SYSTEM}.default"
|
||||||
cd $dir
|
''}
|
||||||
${exec "nix"} flake update # Update flake.lock
|
'';
|
||||||
${exec "nix"} flake check # Make sure things work after the update
|
};
|
||||||
)
|
|
||||||
done
|
check = final.writeShellApplication {
|
||||||
'';
|
name = "check";
|
||||||
})
|
text = forEachDir ''
|
||||||
];
|
echo "checking ''${dir}"
|
||||||
supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
|
nix flake check --all-systems --no-build
|
||||||
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
|
'';
|
||||||
pkgs = import nixpkgs { inherit overlays system; };
|
};
|
||||||
});
|
|
||||||
in
|
dvt = final.writeShellApplication {
|
||||||
|
name = "dvt";
|
||||||
|
text = ''
|
||||||
|
if [ -z $1 ]; then
|
||||||
|
echo "no template specified"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
TEMPLATE=$1
|
||||||
|
|
||||||
|
nix \
|
||||||
|
--experimental-features 'nix-command flakes' \
|
||||||
|
flake init \
|
||||||
|
--template \
|
||||||
|
"github:the-nix-way/dev-templates#''${TEMPLATE}"
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
update = final.writeShellApplication {
|
||||||
|
name = "update";
|
||||||
|
text = forEachDir ''
|
||||||
|
echo "updating ''${dir}"
|
||||||
|
nix flake update
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
})
|
||||||
|
];
|
||||||
|
supportedSystems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"];
|
||||||
|
forEachSupportedSystem = f:
|
||||||
|
nixpkgs.lib.genAttrs supportedSystems (system:
|
||||||
|
f {
|
||||||
|
pkgs = import nixpkgs {inherit overlays system;};
|
||||||
|
});
|
||||||
|
in
|
||||||
{
|
{
|
||||||
devShells = forEachSupportedSystem ({ pkgs }: {
|
devShells = forEachSupportedSystem ({pkgs}: {
|
||||||
default = pkgs.mkShell {
|
default = pkgs.mkShell {
|
||||||
packages = with pkgs; [ format update ];
|
packages = with pkgs; [build check format update];
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
packages = forEachSupportedSystem ({ pkgs }: rec {
|
packages = forEachSupportedSystem ({pkgs}: rec {
|
||||||
default = dvt;
|
default = dvt;
|
||||||
inherit (pkgs) dvt;
|
inherit (pkgs) dvt;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
// {
|
||||||
//
|
|
||||||
|
|
||||||
{
|
|
||||||
templates = rec {
|
templates = rec {
|
||||||
clojure = {
|
clojure = {
|
||||||
path = ./clojure;
|
path = ./clojure;
|
||||||
|
@ -91,6 +125,11 @@
|
||||||
description = "Elm development environment";
|
description = "Elm development environment";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
empty = {
|
||||||
|
path = ./empty;
|
||||||
|
description = "Empty dev template that you can customize at will";
|
||||||
|
};
|
||||||
|
|
||||||
gleam = {
|
gleam = {
|
||||||
path = ./gleam;
|
path = ./gleam;
|
||||||
description = "Gleam development environment";
|
description = "Gleam development environment";
|
||||||
|
@ -116,6 +155,11 @@
|
||||||
description = "Java development environment";
|
description = "Java development environment";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
jupyter = {
|
||||||
|
path = ./jupyter;
|
||||||
|
description = "Jupyter development environment";
|
||||||
|
};
|
||||||
|
|
||||||
kotlin = {
|
kotlin = {
|
||||||
path = ./kotlin;
|
path = ./kotlin;
|
||||||
description = "Kotlin development environment";
|
description = "Kotlin development environment";
|
||||||
|
@ -186,6 +230,11 @@
|
||||||
description = "Rust development environment";
|
description = "Rust development environment";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
rustpython = {
|
||||||
|
path = ./rustpython;
|
||||||
|
description = "Rustpython development environment";
|
||||||
|
};
|
||||||
|
|
||||||
rust-toolchain = {
|
rust-toolchain = {
|
||||||
path = ./rust-toolchain;
|
path = ./rust-toolchain;
|
||||||
description = "Rust development environment with Rust version defined by a rust-toolchain.toml file";
|
description = "Rust development environment with Rust version defined by a rust-toolchain.toml file";
|
||||||
|
@ -201,6 +250,11 @@
|
||||||
description = "Shell script development environment";
|
description = "Shell script development environment";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
vlang = {
|
||||||
|
path = ./vlang;
|
||||||
|
description = "Vlang developent environment";
|
||||||
|
};
|
||||||
|
|
||||||
zig = {
|
zig = {
|
||||||
path = ./zig;
|
path = ./zig;
|
||||||
description = "Zig development environment";
|
description = "Zig development environment";
|
||||||
|
|
|
@ -2,12 +2,10 @@
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1703013332,
|
"lastModified": 1717196966,
|
||||||
"narHash": "sha256-+tFNwMvlXLbJZXiMHqYq77z/RfmpfpiI3yjL6o/Zo9M=",
|
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=",
|
||||||
"rev": "54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6",
|
|
||||||
"revCount": 561409,
|
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
"url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.561409%2Brev-54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6/018c8732-ea5c-725f-a6c9-9ed48683aa5a/source.tar.gz"
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
|
|
|
@ -2,12 +2,10 @@
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1703013332,
|
"lastModified": 1717196966,
|
||||||
"narHash": "sha256-+tFNwMvlXLbJZXiMHqYq77z/RfmpfpiI3yjL6o/Zo9M=",
|
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=",
|
||||||
"rev": "54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6",
|
|
||||||
"revCount": 561409,
|
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
"url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.561409%2Brev-54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6/018c8732-ea5c-725f-a6c9-9ed48683aa5a/source.tar.gz"
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
description = "A Nix-flake-based Go 1.17 development environment";
|
description = "A Nix-flake-based Go 1.22 development environment";
|
||||||
|
|
||||||
inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz";
|
inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz";
|
||||||
|
|
||||||
outputs = { self, nixpkgs }:
|
outputs = { self, nixpkgs }:
|
||||||
let
|
let
|
||||||
goVersion = 20; # Change this to update the whole stack
|
goVersion = 22; # Change this to update the whole stack
|
||||||
overlays = [ (final: prev: { go = prev."go_1_${toString goVersion}"; }) ];
|
overlays = [ (final: prev: { go = prev."go_1_${toString goVersion}"; }) ];
|
||||||
supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
|
supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
|
||||||
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
|
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
|
||||||
|
@ -16,8 +16,8 @@
|
||||||
devShells = forEachSupportedSystem ({ pkgs }: {
|
devShells = forEachSupportedSystem ({ pkgs }: {
|
||||||
default = pkgs.mkShell {
|
default = pkgs.mkShell {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
# go 1.20 (specified by overlay)
|
# go 1.22 (specified by overlay)
|
||||||
go
|
go_1_22
|
||||||
|
|
||||||
# goimports, godoc, etc.
|
# goimports, godoc, etc.
|
||||||
gotools
|
gotools
|
||||||
|
|
|
@ -2,12 +2,10 @@
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1703013332,
|
"lastModified": 1717196966,
|
||||||
"narHash": "sha256-+tFNwMvlXLbJZXiMHqYq77z/RfmpfpiI3yjL6o/Zo9M=",
|
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=",
|
||||||
"rev": "54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6",
|
|
||||||
"revCount": 561409,
|
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
"url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.561409%2Brev-54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6/018c8732-ea5c-725f-a6c9-9ed48683aa5a/source.tar.gz"
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
|
|
|
@ -2,12 +2,10 @@
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1703013332,
|
"lastModified": 1717196966,
|
||||||
"narHash": "sha256-+tFNwMvlXLbJZXiMHqYq77z/RfmpfpiI3yjL6o/Zo9M=",
|
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=",
|
||||||
"rev": "54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6",
|
|
||||||
"revCount": 561409,
|
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
"url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.561409%2Brev-54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6/018c8732-ea5c-725f-a6c9-9ed48683aa5a/source.tar.gz"
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
|
|
23
haxe/flake.lock
Normal file
23
haxe/flake.lock
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
{
|
||||||
|
"nodes": {
|
||||||
|
"nixpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1717196966,
|
||||||
|
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=",
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": "root",
|
||||||
|
"version": 7
|
||||||
|
}
|
26
haxe/flake.nix
Normal file
26
haxe/flake.nix
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
{
|
||||||
|
description = "A Nix-flake-based Haxe development environment";
|
||||||
|
|
||||||
|
inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz";
|
||||||
|
|
||||||
|
outputs =
|
||||||
|
{ self
|
||||||
|
, nixpkgs
|
||||||
|
,
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
|
||||||
|
forEachSupportedSystem = f:
|
||||||
|
nixpkgs.lib.genAttrs supportedSystems (system:
|
||||||
|
f {
|
||||||
|
pkgs = import nixpkgs { inherit system; };
|
||||||
|
});
|
||||||
|
in
|
||||||
|
{
|
||||||
|
devShells = forEachSupportedSystem ({ pkgs }: {
|
||||||
|
default = pkgs.mkShell {
|
||||||
|
packages = with pkgs; [ haxe ];
|
||||||
|
};
|
||||||
|
});
|
||||||
|
};
|
||||||
|
}
|
|
@ -2,12 +2,10 @@
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1703013332,
|
"lastModified": 1717196966,
|
||||||
"narHash": "sha256-+tFNwMvlXLbJZXiMHqYq77z/RfmpfpiI3yjL6o/Zo9M=",
|
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=",
|
||||||
"rev": "54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6",
|
|
||||||
"revCount": 561409,
|
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
"url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.561409%2Brev-54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6/018c8732-ea5c-725f-a6c9-9ed48683aa5a/source.tar.gz"
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
{
|
{
|
||||||
devShells = forEachSupportedSystem ({ pkgs }: {
|
devShells = forEachSupportedSystem ({ pkgs }: {
|
||||||
default = pkgs.mkShell {
|
default = pkgs.mkShell {
|
||||||
packages = with pkgs; [ gradle jdk maven ];
|
packages = with pkgs; [ gradle jdk maven jdt-language-server ];
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
1
jupyter/.envrc
Normal file
1
jupyter/.envrc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
use flake
|
23
jupyter/flake.lock
Normal file
23
jupyter/flake.lock
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
{
|
||||||
|
"nodes": {
|
||||||
|
"nixpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1717196966,
|
||||||
|
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=",
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": "root",
|
||||||
|
"version": 7
|
||||||
|
}
|
45
jupyter/flake.nix
Normal file
45
jupyter/flake.nix
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
{
|
||||||
|
description = "A Nix-flake-based Jupyter development environment";
|
||||||
|
|
||||||
|
inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz";
|
||||||
|
|
||||||
|
outputs = {
|
||||||
|
self,
|
||||||
|
nixpkgs,
|
||||||
|
}: let
|
||||||
|
supportedSystems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"];
|
||||||
|
forEachSupportedSystem = f:
|
||||||
|
nixpkgs.lib.genAttrs supportedSystems (system:
|
||||||
|
f {
|
||||||
|
pkgs = import nixpkgs {inherit system;};
|
||||||
|
});
|
||||||
|
in {
|
||||||
|
devShells = forEachSupportedSystem ({pkgs}: {
|
||||||
|
default = pkgs.mkShell {
|
||||||
|
venvDir = "venv";
|
||||||
|
packages = with pkgs;
|
||||||
|
[python311 virtualenv]
|
||||||
|
++ (with pkgs.python311Packages; [
|
||||||
|
pip
|
||||||
|
python-lsp-server
|
||||||
|
python-lsp-ruff
|
||||||
|
venvShellHook
|
||||||
|
requests
|
||||||
|
jupyter
|
||||||
|
pandas
|
||||||
|
numpy
|
||||||
|
matplotlib
|
||||||
|
seaborn
|
||||||
|
scikit-learn
|
||||||
|
plotnine
|
||||||
|
arrow
|
||||||
|
polars
|
||||||
|
pyarrow
|
||||||
|
ydata-profiling
|
||||||
|
pydot
|
||||||
|
graphviz
|
||||||
|
]);
|
||||||
|
};
|
||||||
|
});
|
||||||
|
};
|
||||||
|
}
|
|
@ -2,12 +2,10 @@
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1703013332,
|
"lastModified": 1717196966,
|
||||||
"narHash": "sha256-+tFNwMvlXLbJZXiMHqYq77z/RfmpfpiI3yjL6o/Zo9M=",
|
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=",
|
||||||
"rev": "54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6",
|
|
||||||
"revCount": 561409,
|
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
"url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.561409%2Brev-54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6/018c8732-ea5c-725f-a6c9-9ed48683aa5a/source.tar.gz"
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
|
|
|
@ -2,12 +2,10 @@
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1703013332,
|
"lastModified": 1717196966,
|
||||||
"narHash": "sha256-+tFNwMvlXLbJZXiMHqYq77z/RfmpfpiI3yjL6o/Zo9M=",
|
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=",
|
||||||
"rev": "54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6",
|
|
||||||
"revCount": 561409,
|
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
"url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.561409%2Brev-54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6/018c8732-ea5c-725f-a6c9-9ed48683aa5a/source.tar.gz"
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
|
|
|
@ -2,12 +2,10 @@
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1703013332,
|
"lastModified": 1717196966,
|
||||||
"narHash": "sha256-+tFNwMvlXLbJZXiMHqYq77z/RfmpfpiI3yjL6o/Zo9M=",
|
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=",
|
||||||
"rev": "54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6",
|
|
||||||
"revCount": 561409,
|
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
"url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.561409%2Brev-54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6/018c8732-ea5c-725f-a6c9-9ed48683aa5a/source.tar.gz"
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
|
|
|
@ -2,12 +2,10 @@
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1703013332,
|
"lastModified": 1717196966,
|
||||||
"narHash": "sha256-+tFNwMvlXLbJZXiMHqYq77z/RfmpfpiI3yjL6o/Zo9M=",
|
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=",
|
||||||
"rev": "54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6",
|
|
||||||
"revCount": 561409,
|
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
"url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.561409%2Brev-54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6/018c8732-ea5c-725f-a6c9-9ed48683aa5a/source.tar.gz"
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
|
|
|
@ -2,12 +2,10 @@
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1703013332,
|
"lastModified": 1717196966,
|
||||||
"narHash": "sha256-+tFNwMvlXLbJZXiMHqYq77z/RfmpfpiI3yjL6o/Zo9M=",
|
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=",
|
||||||
"rev": "54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6",
|
|
||||||
"revCount": 561409,
|
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
"url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.561409%2Brev-54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6/018c8732-ea5c-725f-a6c9-9ed48683aa5a/source.tar.gz"
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
|
|
|
@ -3,27 +3,29 @@
|
||||||
|
|
||||||
inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz";
|
inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz";
|
||||||
|
|
||||||
outputs = { self, nixpkgs }:
|
outputs = {
|
||||||
let
|
self,
|
||||||
supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
|
nixpkgs,
|
||||||
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
|
}: let
|
||||||
pkgs = import nixpkgs { inherit system; };
|
supportedSystems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"];
|
||||||
});
|
forEachSupportedSystem = f:
|
||||||
in
|
nixpkgs.lib.genAttrs supportedSystems (system:
|
||||||
{
|
f {
|
||||||
devShells = forEachSupportedSystem ({ pkgs }: {
|
pkgs = import nixpkgs {inherit system;};
|
||||||
default = pkgs.mkShell {
|
});
|
||||||
packages = with pkgs; [
|
in {
|
||||||
cachix
|
devShells = forEachSupportedSystem ({pkgs}: {
|
||||||
lorri
|
default = pkgs.mkShell {
|
||||||
niv
|
packages = with pkgs; [
|
||||||
nixfmt
|
cachix
|
||||||
statix
|
lorri
|
||||||
vulnix
|
niv
|
||||||
haskellPackages.dhall-nix
|
alejandra
|
||||||
rnix-lsp
|
statix
|
||||||
];
|
vulnix
|
||||||
};
|
haskellPackages.dhall-nix
|
||||||
});
|
];
|
||||||
};
|
};
|
||||||
|
});
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,12 +2,10 @@
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1703013332,
|
"lastModified": 1717196966,
|
||||||
"narHash": "sha256-+tFNwMvlXLbJZXiMHqYq77z/RfmpfpiI3yjL6o/Zo9M=",
|
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=",
|
||||||
"rev": "54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6",
|
|
||||||
"revCount": 561409,
|
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
"url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.561409%2Brev-54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6/018c8732-ea5c-725f-a6c9-9ed48683aa5a/source.tar.gz"
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
|
|
|
@ -2,18 +2,14 @@
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1689261696,
|
"lastModified": 1717196966,
|
||||||
"narHash": "sha256-LzfUtFs9MQRvIoQ3MfgSuipBVMXslMPH/vZ+nM40LkA=",
|
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=",
|
||||||
"owner": "NixOS",
|
"type": "tarball",
|
||||||
"repo": "nixpkgs",
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
"rev": "df1eee2aa65052a18121ed4971081576b25d6b5c",
|
|
||||||
"type": "github"
|
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"type": "tarball",
|
||||||
"ref": "nixpkgs-unstable",
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
|
|
|
@ -2,18 +2,14 @@
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1689261696,
|
"lastModified": 1717196966,
|
||||||
"narHash": "sha256-LzfUtFs9MQRvIoQ3MfgSuipBVMXslMPH/vZ+nM40LkA=",
|
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=",
|
||||||
"owner": "NixOS",
|
"type": "tarball",
|
||||||
"repo": "nixpkgs",
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
"rev": "df1eee2aa65052a18121ed4971081576b25d6b5c",
|
|
||||||
"type": "github"
|
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"type": "tarball",
|
||||||
"ref": "nixpkgs-unstable",
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
|
|
|
@ -2,18 +2,14 @@
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1689261696,
|
"lastModified": 1717196966,
|
||||||
"narHash": "sha256-LzfUtFs9MQRvIoQ3MfgSuipBVMXslMPH/vZ+nM40LkA=",
|
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=",
|
||||||
"owner": "NixOS",
|
"type": "tarball",
|
||||||
"repo": "nixpkgs",
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
"rev": "df1eee2aa65052a18121ed4971081576b25d6b5c",
|
|
||||||
"type": "github"
|
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"type": "tarball",
|
||||||
"ref": "nixpkgs-unstable",
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
|
|
|
@ -2,18 +2,14 @@
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1689261696,
|
"lastModified": 1717196966,
|
||||||
"narHash": "sha256-LzfUtFs9MQRvIoQ3MfgSuipBVMXslMPH/vZ+nM40LkA=",
|
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=",
|
||||||
"owner": "NixOS",
|
"type": "tarball",
|
||||||
"repo": "nixpkgs",
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
"rev": "df1eee2aa65052a18121ed4971081576b25d6b5c",
|
|
||||||
"type": "github"
|
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"type": "tarball",
|
||||||
"ref": "nixpkgs-unstable",
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
|
|
|
@ -2,18 +2,14 @@
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1689261696,
|
"lastModified": 1717196966,
|
||||||
"narHash": "sha256-LzfUtFs9MQRvIoQ3MfgSuipBVMXslMPH/vZ+nM40LkA=",
|
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=",
|
||||||
"owner": "NixOS",
|
"type": "tarball",
|
||||||
"repo": "nixpkgs",
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
"rev": "df1eee2aa65052a18121ed4971081576b25d6b5c",
|
|
||||||
"type": "github"
|
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"type": "tarball",
|
||||||
"ref": "nixpkgs-unstable",
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
python311
|
python311
|
||||||
|
|
||||||
# Go SDK
|
# Go SDK
|
||||||
go_1_20
|
go_1_22
|
||||||
|
|
||||||
# Node.js SDK
|
# Node.js SDK
|
||||||
nodejs
|
nodejs
|
||||||
|
|
|
@ -3,11 +3,11 @@
|
||||||
"easy-purescript-nix": {
|
"easy-purescript-nix": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1686900973,
|
"lastModified": 1710161569,
|
||||||
"narHash": "sha256-9whTjp8BYy8ZzyghhgbawS06/dVESduME3wsdNH/mpk=",
|
"narHash": "sha256-lcIRIOFCdIWEGyKyG/tB4KvxM9zoWuBRDxW+T+mvIb0=",
|
||||||
"owner": "justinwoo",
|
"owner": "justinwoo",
|
||||||
"repo": "easy-purescript-nix",
|
"repo": "easy-purescript-nix",
|
||||||
"rev": "8cf400656945b2f2bacfd6a8775792aa701f60e9",
|
"rev": "117fd96acb69d7d1727df95b6fde9d8715e031fc",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -18,18 +18,14 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1689261696,
|
"lastModified": 1717196966,
|
||||||
"narHash": "sha256-LzfUtFs9MQRvIoQ3MfgSuipBVMXslMPH/vZ+nM40LkA=",
|
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=",
|
||||||
"owner": "NixOS",
|
"type": "tarball",
|
||||||
"repo": "nixpkgs",
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
"rev": "df1eee2aa65052a18121ed4971081576b25d6b5c",
|
|
||||||
"type": "github"
|
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"type": "tarball",
|
||||||
"ref": "nixpkgs-unstable",
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
description = "A Nix-flake-based Purescript development environment";
|
description = "A Nix-flake-based Purescript development environment";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz";
|
nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz";
|
||||||
easy-purescript-nix = {
|
easy-purescript-nix = {
|
||||||
url = "github:justinwoo/easy-purescript-nix";
|
url = "github:justinwoo/easy-purescript-nix";
|
||||||
flake = false;
|
flake = false;
|
||||||
|
|
|
@ -2,18 +2,14 @@
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1689261696,
|
"lastModified": 1717196966,
|
||||||
"narHash": "sha256-LzfUtFs9MQRvIoQ3MfgSuipBVMXslMPH/vZ+nM40LkA=",
|
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=",
|
||||||
"owner": "NixOS",
|
"type": "tarball",
|
||||||
"repo": "nixpkgs",
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
"rev": "df1eee2aa65052a18121ed4971081576b25d6b5c",
|
|
||||||
"type": "github"
|
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"type": "tarball",
|
||||||
"ref": "nixpkgs-unstable",
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
|
|
|
@ -3,19 +3,27 @@
|
||||||
|
|
||||||
inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz";
|
inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz";
|
||||||
|
|
||||||
outputs = { self, nixpkgs }:
|
outputs = {
|
||||||
let
|
self,
|
||||||
supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
|
nixpkgs,
|
||||||
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
|
}: let
|
||||||
pkgs = import nixpkgs { inherit system; };
|
supportedSystems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"];
|
||||||
});
|
forEachSupportedSystem = f:
|
||||||
in
|
nixpkgs.lib.genAttrs supportedSystems (system:
|
||||||
{
|
f {
|
||||||
devShells = forEachSupportedSystem ({ pkgs }: {
|
pkgs = import nixpkgs {inherit system;};
|
||||||
default = pkgs.mkShell {
|
});
|
||||||
packages = with pkgs; [ python311 virtualenv ] ++
|
in {
|
||||||
(with pkgs.python311Packages; [ pip ]);
|
devShells = forEachSupportedSystem ({pkgs}: {
|
||||||
};
|
default = pkgs.mkShell {
|
||||||
});
|
packages = with pkgs;
|
||||||
};
|
[python311]
|
||||||
|
++ (with pkgs.python311Packages; [
|
||||||
|
pip
|
||||||
|
python-lsp-server
|
||||||
|
python-lsp-ruff
|
||||||
|
]);
|
||||||
|
};
|
||||||
|
});
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
14
python/justfile
Normal file
14
python/justfile
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
build:
|
||||||
|
python main.py
|
||||||
|
|
||||||
|
test:
|
||||||
|
pytest test.py
|
||||||
|
|
||||||
|
run:
|
||||||
|
python main.py
|
||||||
|
|
||||||
|
jupyter:
|
||||||
|
cat | zsh ~/.config/helix/run_jupyter_from_helix.zsh python
|
||||||
|
|
||||||
|
send:
|
||||||
|
python -c 'import sys, textwrap; sys.stdout.write(textwrap.dedent(sys.stdin.read()))' | jupyter run --existing="/tmp/rjh-$(pwd).json"
|
|
@ -2,18 +2,14 @@
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1689261696,
|
"lastModified": 1717196966,
|
||||||
"narHash": "sha256-LzfUtFs9MQRvIoQ3MfgSuipBVMXslMPH/vZ+nM40LkA=",
|
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=",
|
||||||
"owner": "NixOS",
|
"type": "tarball",
|
||||||
"repo": "nixpkgs",
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
"rev": "df1eee2aa65052a18121ed4971081576b25d6b5c",
|
|
||||||
"type": "github"
|
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"type": "tarball",
|
||||||
"ref": "nixpkgs-unstable",
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
|
|
|
@ -5,11 +5,11 @@
|
||||||
"systems": "systems"
|
"systems": "systems"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1681202837,
|
"lastModified": 1705309234,
|
||||||
"narHash": "sha256-H+Rh19JDwRtpVPAWp64F+rlEtxUWBAQW28eAi3SRSzg=",
|
"narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "flake-utils",
|
"repo": "flake-utils",
|
||||||
"rev": "cfacdce06f30d2b68473a46042957675eebb3401",
|
"rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -20,34 +20,14 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1689261696,
|
"lastModified": 1717196966,
|
||||||
"narHash": "sha256-LzfUtFs9MQRvIoQ3MfgSuipBVMXslMPH/vZ+nM40LkA=",
|
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=",
|
||||||
"owner": "NixOS",
|
"type": "tarball",
|
||||||
"repo": "nixpkgs",
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
"rev": "df1eee2aa65052a18121ed4971081576b25d6b5c",
|
|
||||||
"type": "github"
|
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"type": "tarball",
|
||||||
"ref": "nixpkgs-unstable",
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs_2": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1681358109,
|
|
||||||
"narHash": "sha256-eKyxW4OohHQx9Urxi7TQlFBTDWII+F+x2hklDOQPB50=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "96ba1c52e54e74c3197f4d43026b3f3d92e83ff9",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"ref": "nixpkgs-unstable",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
|
@ -59,14 +39,16 @@
|
||||||
"rust-overlay": {
|
"rust-overlay": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils",
|
"flake-utils": "flake-utils",
|
||||||
"nixpkgs": "nixpkgs_2"
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1689302058,
|
"lastModified": 1717467480,
|
||||||
"narHash": "sha256-yD74lcHTrw4niXcE9goJLbzsgyce48rQQoy5jK5ZK40=",
|
"narHash": "sha256-9Fbar+ycxdfZ6HbwOCgD+jWG3du/12TFisKRQm4Zhfc=",
|
||||||
"owner": "oxalica",
|
"owner": "oxalica",
|
||||||
"repo": "rust-overlay",
|
"repo": "rust-overlay",
|
||||||
"rev": "7b8dbbf4c67ed05a9bf3d9e658c12d4108bc24c8",
|
"rev": "260ff391290a2b23958d04db0d3e7015c8417401",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
description = "A Nix-flake-based Rust development environment";
|
description = "A Nix-flake-based Rust development environment";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz";
|
nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz";
|
||||||
rust-overlay = {
|
rust-overlay = {
|
||||||
url = "github:oxalica/rust-overlay";
|
url = "github:oxalica/rust-overlay";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
|
@ -5,11 +5,11 @@
|
||||||
"systems": "systems"
|
"systems": "systems"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1681202837,
|
"lastModified": 1705309234,
|
||||||
"narHash": "sha256-H+Rh19JDwRtpVPAWp64F+rlEtxUWBAQW28eAi3SRSzg=",
|
"narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "flake-utils",
|
"repo": "flake-utils",
|
||||||
"rev": "cfacdce06f30d2b68473a46042957675eebb3401",
|
"rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -20,34 +20,14 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1689261696,
|
"lastModified": 1717196966,
|
||||||
"narHash": "sha256-LzfUtFs9MQRvIoQ3MfgSuipBVMXslMPH/vZ+nM40LkA=",
|
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=",
|
||||||
"owner": "NixOS",
|
"type": "tarball",
|
||||||
"repo": "nixpkgs",
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
"rev": "df1eee2aa65052a18121ed4971081576b25d6b5c",
|
|
||||||
"type": "github"
|
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"type": "tarball",
|
||||||
"ref": "nixpkgs-unstable",
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs_2": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1681358109,
|
|
||||||
"narHash": "sha256-eKyxW4OohHQx9Urxi7TQlFBTDWII+F+x2hklDOQPB50=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "96ba1c52e54e74c3197f4d43026b3f3d92e83ff9",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"ref": "nixpkgs-unstable",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
|
@ -59,14 +39,16 @@
|
||||||
"rust-overlay": {
|
"rust-overlay": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils",
|
"flake-utils": "flake-utils",
|
||||||
"nixpkgs": "nixpkgs_2"
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1689302058,
|
"lastModified": 1717467480,
|
||||||
"narHash": "sha256-yD74lcHTrw4niXcE9goJLbzsgyce48rQQoy5jK5ZK40=",
|
"narHash": "sha256-9Fbar+ycxdfZ6HbwOCgD+jWG3du/12TFisKRQm4Zhfc=",
|
||||||
"owner": "oxalica",
|
"owner": "oxalica",
|
||||||
"repo": "rust-overlay",
|
"repo": "rust-overlay",
|
||||||
"rev": "7b8dbbf4c67ed05a9bf3d9e658c12d4108bc24c8",
|
"rev": "260ff391290a2b23958d04db0d3e7015c8417401",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
description = "A Nix-flake-based Rust development environment";
|
description = "A Nix-flake-based Rust development environment";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz";
|
nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz";
|
||||||
rust-overlay = {
|
rust-overlay = {
|
||||||
url = "github:oxalica/rust-overlay";
|
url = "github:oxalica/rust-overlay";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
@ -23,7 +23,9 @@
|
||||||
else if builtins.pathExists ./rust-toolchain then
|
else if builtins.pathExists ./rust-toolchain then
|
||||||
rust.fromRustupToolchainFile ./rust-toolchain
|
rust.fromRustupToolchainFile ./rust-toolchain
|
||||||
else
|
else
|
||||||
rust.stable.latest.default;
|
rust.stable.latest.default.override {
|
||||||
|
extensions = [ "rust-src" "rustfmt" ];
|
||||||
|
};
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
|
supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
|
||||||
|
|
8
rust/justfile
Normal file
8
rust/justfile
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
build:
|
||||||
|
cargo build
|
||||||
|
|
||||||
|
test:
|
||||||
|
cargo test
|
||||||
|
|
||||||
|
run:
|
||||||
|
cargo run
|
1
rustpython/.envrc
Normal file
1
rustpython/.envrc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
use flake
|
78
rustpython/flake.lock
Normal file
78
rustpython/flake.lock
Normal file
|
@ -0,0 +1,78 @@
|
||||||
|
{
|
||||||
|
"nodes": {
|
||||||
|
"flake-utils": {
|
||||||
|
"inputs": {
|
||||||
|
"systems": "systems"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1705309234,
|
||||||
|
"narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1717196966,
|
||||||
|
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=",
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": "nixpkgs",
|
||||||
|
"rust-overlay": "rust-overlay"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rust-overlay": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-utils": "flake-utils",
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1717467480,
|
||||||
|
"narHash": "sha256-9Fbar+ycxdfZ6HbwOCgD+jWG3du/12TFisKRQm4Zhfc=",
|
||||||
|
"owner": "oxalica",
|
||||||
|
"repo": "rust-overlay",
|
||||||
|
"rev": "260ff391290a2b23958d04db0d3e7015c8417401",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "oxalica",
|
||||||
|
"repo": "rust-overlay",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"systems": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": "root",
|
||||||
|
"version": 7
|
||||||
|
}
|
48
rustpython/flake.nix
Normal file
48
rustpython/flake.nix
Normal file
|
@ -0,0 +1,48 @@
|
||||||
|
{
|
||||||
|
description = "A Nix-flake-based Rust development environment";
|
||||||
|
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz";
|
||||||
|
rust-overlay = {
|
||||||
|
url = "github:oxalica/rust-overlay";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs =
|
||||||
|
{ self
|
||||||
|
, nixpkgs
|
||||||
|
, rust-overlay
|
||||||
|
,
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
overlays = [
|
||||||
|
rust-overlay.overlays.default
|
||||||
|
(final: prev: {
|
||||||
|
rustToolchain = prev.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
|
||||||
|
})
|
||||||
|
];
|
||||||
|
supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
|
||||||
|
forEachSupportedSystem = f:
|
||||||
|
nixpkgs.lib.genAttrs supportedSystems (system:
|
||||||
|
f {
|
||||||
|
pkgs = import nixpkgs { inherit overlays system; };
|
||||||
|
});
|
||||||
|
in
|
||||||
|
{
|
||||||
|
devShells = forEachSupportedSystem ({ pkgs }: {
|
||||||
|
default = pkgs.mkShell {
|
||||||
|
packages = with pkgs; [
|
||||||
|
rustToolchain
|
||||||
|
openssl
|
||||||
|
pkg-config
|
||||||
|
cargo-deny
|
||||||
|
cargo-edit
|
||||||
|
cargo-watch
|
||||||
|
rust-analyzer
|
||||||
|
rustpython
|
||||||
|
];
|
||||||
|
};
|
||||||
|
});
|
||||||
|
};
|
||||||
|
}
|
2
rustpython/rust-toolchain.toml
Normal file
2
rustpython/rust-toolchain.toml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[toolchain]
|
||||||
|
channel = "1.69.0"
|
|
@ -2,18 +2,14 @@
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1689261696,
|
"lastModified": 1717196966,
|
||||||
"narHash": "sha256-LzfUtFs9MQRvIoQ3MfgSuipBVMXslMPH/vZ+nM40LkA=",
|
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=",
|
||||||
"owner": "NixOS",
|
"type": "tarball",
|
||||||
"repo": "nixpkgs",
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
"rev": "df1eee2aa65052a18121ed4971081576b25d6b5c",
|
|
||||||
"type": "github"
|
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"type": "tarball",
|
||||||
"ref": "nixpkgs-unstable",
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
|
|
|
@ -2,18 +2,14 @@
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1689261696,
|
"lastModified": 1717196966,
|
||||||
"narHash": "sha256-LzfUtFs9MQRvIoQ3MfgSuipBVMXslMPH/vZ+nM40LkA=",
|
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=",
|
||||||
"owner": "NixOS",
|
"type": "tarball",
|
||||||
"repo": "nixpkgs",
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
"rev": "df1eee2aa65052a18121ed4971081576b25d6b5c",
|
|
||||||
"type": "github"
|
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"type": "tarball",
|
||||||
"ref": "nixpkgs-unstable",
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
|
|
23
vlang/flake.lock
Normal file
23
vlang/flake.lock
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
{
|
||||||
|
"nodes": {
|
||||||
|
"nixpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1717196966,
|
||||||
|
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=",
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": "root",
|
||||||
|
"version": 7
|
||||||
|
}
|
22
vlang/flake.nix
Normal file
22
vlang/flake.nix
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
{
|
||||||
|
description = "A Nix-flake-based Vlang development environment";
|
||||||
|
|
||||||
|
inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz";
|
||||||
|
|
||||||
|
outputs = { self, nixpkgs }:
|
||||||
|
let
|
||||||
|
supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
|
||||||
|
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
|
||||||
|
pkgs = import nixpkgs { inherit system; };
|
||||||
|
});
|
||||||
|
in
|
||||||
|
{
|
||||||
|
devShells = forEachSupportedSystem ({ pkgs }: {
|
||||||
|
default = pkgs.mkShell {
|
||||||
|
packages = with pkgs; [
|
||||||
|
vlang
|
||||||
|
];
|
||||||
|
};
|
||||||
|
});
|
||||||
|
};
|
||||||
|
}
|
|
@ -2,18 +2,14 @@
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1689261696,
|
"lastModified": 1717196966,
|
||||||
"narHash": "sha256-LzfUtFs9MQRvIoQ3MfgSuipBVMXslMPH/vZ+nM40LkA=",
|
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=",
|
||||||
"owner": "NixOS",
|
"type": "tarball",
|
||||||
"repo": "nixpkgs",
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
"rev": "df1eee2aa65052a18121ed4971081576b25d6b5c",
|
|
||||||
"type": "github"
|
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"type": "tarball",
|
||||||
"ref": "nixpkgs-unstable",
|
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz"
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
|
|
Loading…
Reference in a new issue