Compare commits

..

No commits in common. "main" and "v0.1.1" have entirely different histories.
main ... v0.1.1

57 changed files with 486 additions and 833 deletions

261
README.md
View file

@ -22,45 +22,40 @@ 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 installed, you can initialize the environment by running `direnv allow`. 1. If you have [`nix-direnv`][nix-direnv] 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/) |
| Empty (change at will) | [`empty`](./empty) | | [Gleam] | [`gleam`](./gleam/) |
| [Gleam][Gleam] | [`gleam`](./gleam/) | | [Go] | [`go`](./go/) |
| [Go][Go] | [`go`](./go/) | | [Hashicorp] tools | [`hashi`](./hashi/) |
| [Hashicorp][Hashicorp] tools | [`hashi`](./hashi/) | | [Java] | [`java`](./java/) |
| [Haxe][Haxe] | [`haxe`](./haxe/) | | [Kotlin] | [`kotlin`](./kotlin/) |
| [Java][Java] | [`java`](./java/) | | [LaTeX] | [`latex`](./latex/) |
| [Jupyter] | [`jupyter`](./jupyter/) | | [Nickel] | [`nickel`](./nickel/) |
| [Kotlin][Kotlin] | [`kotlin`](./kotlin/) | | [Nim] | [`nim`](./nim/) |
| [LaTeX][LaTeX] | [`latex`](./latex/) | | [Nix] | [`nix`](./nix/) |
| [Nickel][Nickel] | [`nickel`](./nickel/) | | [Node.js][node] | [`node`](./node/) |
| [Nim][Nim] | [`nim`](./nim/) | | [OCaml] | [`ocaml`](./ocaml/) |
| [Nix][Nix] | [`nix`](./nix/) | | [Open Policy Agent][opa] | [`opa`](./opa) |
| [Node.js][node] | [`node`](./node/) | | [PHP] | [`php`](./php/) |
| [OCaml][OCaml] | [`ocaml`](./ocaml/) | | [Protobuf] | [`protobuf`](./protobuf/) |
| [Open Policy Agent][opa] | [`opa`](./opa) | | [Pulumi] | [`pulumi`](./pulumi/) |
| [PHP][PHP] | [`php`](./php/) | | [Purescript] | [`purescript`](./purescript/) |
| [Protobuf][Protobuf] | [`protobuf`](./protobuf/) | | [Ruby] | [`ruby`](./ruby/) |
| [Pulumi][Pulumi] | [`pulumi`](./pulumi/) | | [Rust] | [`rust`](./rust/) |
| [Purescript][Purescript] | [`purescript`](./purescript/) | | [Scala] | [`scala`](./scala/) |
| [Ruby][Ruby] | [`ruby`](./ruby/) | | [Shell] | [`shell`](./shell/) |
| [Rust][Rust] | [`rust`](./rust/) | | [Zig] | [`zig`](./zig/) |
| [RustPython][Rust] | [`rustpython`](./rustpython/) |
| [Scala][Scala] | [`scala`](./scala/) |
| [Shell] | [`shell`](./shell/) |
| [Vlang][Vlang] | [`vlang`](./vlang/) |
| [Zig][Zig] | [`zig`](./zig/) |
## Template contents ## Template contents
@ -68,141 +63,132 @@ The sections below list what each template includes. In all cases, you're free t
### [`clojure`](./clojure/) ### [`clojure`](./clojure/)
- [Clojure][Clojure] 1.11.1.1347 - [Clojure] 1.11.1.1347
- [Boot][Boot] 2.8.3 - [Boot] 2.8.3
- [Leiningen][Leiningen] 2.10.0 - [Leiningen] 2.10.0
### [`csharp`](./csharp/) ### [`csharp`](./csharp/)
- [dotnet][dotnet] sdk 7 (7.0.305) - [dotnet] sdk 7 (7.0.305)
- [omnisharp-roslyn][omnisharp-roslyn] - [omnisharp-roslyn]
- [Mono][Mono] 6.12.0.182 - [Mono] 6.12.0.182
- [msbuild][msbuild] 16.10.1 - [msbuild] 16.10.1
### [`cue`](./cue/) ### [`cue`](./cue/)
- [Cue][Cue] 0.5.0 - [Cue] 0.5.0
### [`dhall`](./dhall) ### [`dhall`](./dhall)
- [Dhall][Dhall] 1.41.2 - [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][Elixir] 1.14.5, including [mix][mix] and [IEx][IEx] - [Elixir] 1.14.5, including [mix] and [IEx]
- [gigalixir][gigalixir] (Linux only) - [gigalixir] (Linux only)
### [`elm`](./elm/) ### [`elm`](./elm/)
- [Elm][Elm] 0.19.1 - [Elm] 0.19.1
- [elm2nix][elm2nix] - [elm2nix]
### [Empty](./empty/)
A dev template that's fully customizable.
### [`gleam`](./gleam/) ### [`gleam`](./gleam/)
- [Gleam][Gleam] 0.30.0 - [Gleam] 0.30.0
### [`go`](./go/) ### [`go`](./go/)
- [Go][Go] 1.20.5 - [Go] 1.20.5
- Standard Go tools ([goimports][goimports], [godoc][godoc], and others) - Standard Go tools ([goimports], [godoc], and others)
- [golangci-lint][golangci-lint] - [golangci-lint]
### [`hashi`](./hashi/) ### [`hashi`](./hashi/)
- [Packer][Packer] 1.8.6 - [Packer] 1.8.6
- [Terraform][Terraform] 1.5.2 - [Terraform] 1.5.2
- [Nomad][Nomad] 1.4.6 - [Nomad] 1.4.6
- [Vault][Vault] 1.13.3 - [Vault] 1.13.3
- [nomad-autoscaler][nomad-autoscaler] 0.3.6-dev - [nomad-autoscaler] 0.3.6-dev
- [nomad-pack][nomad-pack] 0.0.1-techpreview.3 - [nomad-pack] 0.0.1-techpreview.3
- [levant][levant] 0.3.2-dev - [levant] 0.3.2-dev
- [damon][damon] - [damon]
- [Terragrunt][Terragrunt] 0.45.13 - [Terragrunt] 0.45.13
- [tflint][tflint] 0.46.1 - [tflint] 0.46.1
### [`haskell`](./haskell/) ### [`haskell`](./haskell/)
- [GHC][haskell] 9.2.8 - [GHC][haskell] 9.2.8
- [cabal][cabal] 3.10.1.0 - [cabal] 3.10.1.0
### [`haxe`](./haxe/)
- [Haxe][Haxe] 4.2.5
### [`java`](./java) ### [`java`](./java)
- [Java][Java] 20.0.1+9 - [Java] 20.0.1+9
- [Maven][Maven] 3.9.2 - [Maven] 3.9.2
- [Gradle][Gradle] 9.0.1 - [Gradle] 9.0.1
- [jdtls][jdtls] 1.31.0
### [`kotlin`](./kotlin/) ### [`kotlin`](./kotlin/)
- [Kotlin][Kotlin] 1.9.0 - [Kotlin] 1.9.0
- [Gradle][Gradle] 8.0.1 - [Gradle] 8.0.1
### [`latex`](./latex/) ### [`latex`](./latex/)
- [texlive][texlive] - [texlive]
- [tectonic][tectonic] - [tectonic]
- [texlab][texlab] - [texlab]
### [`nickel`](./nickel/) ### [`nickel`](./nickel/)
- [Nickel][Nickel] 0.2.0 - [Nickel] 0.2.0
### [`nim`](./nim) ### [`nim`](./nim)
- [Nim][Nim] 1.6.14 - [Nim] 1.6.14
- [nimble][nimble] 0.14.2 - [nimble] 0.14.2
### [`nix`](./nix/) ### [`nix`](./nix/)
- [Cachix][Cachix] 1.6 - [Cachix] 1.6
- [dhall-to-nix][dhall-to-nix] 1.1.25 - [dhall-to-nix] 1.1.25
- [lorri][lorri] 1.6.0 - [lorri] 1.6.0
- [niv][niv] 0.2.22 - [niv] 0.2.22
- [nixfmt][nixfmt] 0.5.0 - [nixfmt] 0.5.0
- [statix][statix] 0.5.6 - [statix] 0.5.6
- [vulnix][vulnix] - [vulnix]
### [`node`](./node/) ### [`node`](./node/)
- [Node.js][node] 18.16.1 - [Node.js][node] 18.16.1
- [npm][npm] 9.5.1 - [npm] 9.5.1
- [pnpm][pnpm] 8.6.6 - [pnpm] 8.6.6
- [Yarn][Yarn] 1.22.19 - [Yarn] 1.22.19
- [node2nix][node2nix] 1.11.1 - [node2nix] 1.11.1
### [`ocaml`](./ocaml/) ### [`ocaml`](./ocaml/)
- [OCaml][OCaml] 4.14.1 - [OCaml] 4.14.1
- [Dune][Dune] 3.9.1 - [Dune] 3.9.1
- [odoc][odoc] 2.2.0 - [odoc] 2.2.0
- [ocamlformat][ocamlformat] 0.25.1 - [ocamlformat] 0.25.1
### [`opa`](./opa/) ### [`opa`](./opa/)
- [Open Policy Agent][opa] 0.54.0 - [Open Policy Agent][opa] 0.54.0
- [Conftest][Conftest] 0.44.0 - [Conftest] 0.44.0
### [`php`](./php/) ### [`php`](./php/)
- [PHP][PHP] 8.2.8 - [PHP] 8.2.8
- [Composer][Composer] 2.5.8 - [Composer] 2.5.8
### [`protobuf`](./protobuf/) ### [`protobuf`](./protobuf/)
@ -211,61 +197,59 @@ A dev template that's fully customizable.
### [`pulumi`](./pulumi/) ### [`pulumi`](./pulumi/)
- [Pulumi][Pulumi] 3.72.1 - [Pulumi] 3.72.1
- [Python][Python] 3.11.4 - [Python] 3.11.4
- [Go][Go] 1.20.5 - [Go] 1.20.5
- [Node.js][node] 18.16.1 - [Node.js][node] 18.16.1
- [dotnet][dotnet] sdk 6 - [dotnet] sdk 6
- [Java][Java] 19.0.1 and [Maven][Maven] 3.9.2 - [Java] 19.0.1 and [Maven] 3.9.2
- [jq][jq] 1.6 - [jq] 1.6
### [`purescript`](./purescript/) ### [`purescript`](./purescript/)
- [Purescript][Purescript] (purs) 0.15.9 - [Purescript] (purs) 0.15.9
- [Spago][Spago] 0.21.0 - [Spago] 0.21.0
- [purescript-language-server][purescript-language-server] 0.17.1 - [purescript-language-server] 0.17.1
- [purs-tidy][purs-tidy] 0.10.0 - [purs-tidy] 0.10.0
### [`python`](./python/) ### [`python`](./python/)
- [Python][Python] 3.11.4 - [Python] 3.11.4
- [pip][pip] 23.0.1 - [pip] 23.0.1
- [Virtualenv] 20.19.0
### [`ruby`](./ruby/) ### [`ruby`](./ruby/)
- [Ruby][Ruby] 3.2.2, plus the standard Ruby tools (`bundle`, `gem`, etc.) - [Ruby] 3.2.2, plus the standard Ruby tools (`bundle`, `gem`, etc.)
### [`rust`](./rust/) ### [`rust`](./rust/)
- [Rust][Rust], including [cargo][cargo], [Clippy][Clippy], and the other standard tools. The Rust version is determined as follows, in order: - [Rust], including [cargo], [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
- [cargo-audit][cargo-audit] 0.17.0 - [rust-analyzer] 2023-07-10
- [cargo-deny][cargo-deny] 0.12.1 - [cargo-audit] 0.17.0
- [cargo-deny] 0.12.1
### [`scala`](./scala/) ### [`scala`](./scala/)
- [Scala][Scala] 2.13.11 ([Java][Java] 19.0.1) - [Scala] 2.13.11 ([Java] 19.0.1)
- [sbt][sbt] 1.9.2 - [sbt] 1.9.2
### [`shell`](./shell/) ### [`shell`](./shell/)
- [shellcheck][shellcheck] 0.9.0 - [shellcheck] 0.9.0
### [`Vlang`](./vlang/)
- [Vlang][Vlang] 0.4.4
### [`zig`](./zig/) ### [`zig`](./zig/)
- [Zig][Zig] 0.10.1 - [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][Nixpkgs] and 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] and [`flake-utils`][flake-utils] 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
@ -307,10 +291,8 @@ 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/
@ -367,7 +349,8 @@ 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

View file

@ -2,10 +2,12 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1717196966, "lastModified": 1703013332,
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=", "narHash": "sha256-+tFNwMvlXLbJZXiMHqYq77z/RfmpfpiI3yjL6o/Zo9M=",
"rev": "54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6",
"revCount": 561409,
"type": "tarball", "type": "tarball",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.561409%2Brev-54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6/018c8732-ea5c-725f-a6c9-9ed48683aa5a/source.tar.gz"
}, },
"original": { "original": {
"type": "tarball", "type": "tarball",

View file

@ -2,10 +2,12 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1717196966, "lastModified": 1703013332,
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=", "narHash": "sha256-+tFNwMvlXLbJZXiMHqYq77z/RfmpfpiI3yjL6o/Zo9M=",
"rev": "54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6",
"revCount": 561409,
"type": "tarball", "type": "tarball",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.561409%2Brev-54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6/018c8732-ea5c-725f-a6c9-9ed48683aa5a/source.tar.gz"
}, },
"original": { "original": {
"type": "tarball", "type": "tarball",

View file

@ -2,10 +2,12 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1717196966, "lastModified": 1703013332,
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=", "narHash": "sha256-+tFNwMvlXLbJZXiMHqYq77z/RfmpfpiI3yjL6o/Zo9M=",
"rev": "54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6",
"revCount": 561409,
"type": "tarball", "type": "tarball",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.561409%2Brev-54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6/018c8732-ea5c-725f-a6c9-9ed48683aa5a/source.tar.gz"
}, },
"original": { "original": {
"type": "tarball", "type": "tarball",

View file

@ -2,10 +2,12 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1717196966, "lastModified": 1703013332,
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=", "narHash": "sha256-+tFNwMvlXLbJZXiMHqYq77z/RfmpfpiI3yjL6o/Zo9M=",
"rev": "54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6",
"revCount": 561409,
"type": "tarball", "type": "tarball",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.561409%2Brev-54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6/018c8732-ea5c-725f-a6c9-9ed48683aa5a/source.tar.gz"
}, },
"original": { "original": {
"type": "tarball", "type": "tarball",

View file

@ -2,10 +2,12 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1717196966, "lastModified": 1703013332,
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=", "narHash": "sha256-+tFNwMvlXLbJZXiMHqYq77z/RfmpfpiI3yjL6o/Zo9M=",
"rev": "54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6",
"revCount": 561409,
"type": "tarball", "type": "tarball",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.561409%2Brev-54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6/018c8732-ea5c-725f-a6c9-9ed48683aa5a/source.tar.gz"
}, },
"original": { "original": {
"type": "tarball", "type": "tarball",

View file

@ -15,12 +15,10 @@
default = pkgs.mkShell { default = pkgs.mkShell {
packages = (with pkgs; [ elixir ]) ++ packages = (with pkgs; [ elixir ]) ++
# Linux only # Linux only
(pkgs.lib.optionals (pkgs.stdenv.isLinux) pkgs.lib.optionals (pkgs.stdenv.isLinux) (with pkgs; [ gigalixir inotify-tools libnotify ]) ++
(with pkgs; [ gigalixir inotify-tools libnotify ])) ++
# macOS only # macOS only
pkgs.lib.optionals (pkgs.stdenv.isDarwin) pkgs.lib.optionals (pkgs.stdenv.isDarwin) (with pkgs; [ terminal-notifier ]) ++
((with pkgs; [ terminal-notifier ]) ++ (with pkgs.darwin.apple_sdk.frameworks; [ CoreFoundation CoreServices ]);
(with pkgs.darwin.apple_sdk.frameworks; [ CoreFoundation CoreServices ]));
}; };
}); });
}; };

View file

@ -2,10 +2,12 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1717196966, "lastModified": 1703013332,
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=", "narHash": "sha256-+tFNwMvlXLbJZXiMHqYq77z/RfmpfpiI3yjL6o/Zo9M=",
"rev": "54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6",
"revCount": 561409,
"type": "tarball", "type": "tarball",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.561409%2Brev-54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6/018c8732-ea5c-725f-a6c9-9ed48683aa5a/source.tar.gz"
}, },
"original": { "original": {
"type": "tarball", "type": "tarball",

View file

@ -1,23 +0,0 @@
{
"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
}

View file

@ -1,39 +0,0 @@
{
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 = ''
'';
};
});
};
}

View file

@ -2,11 +2,11 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1713805509, "lastModified": 1689261696,
"narHash": "sha256-YgSEan4CcrjivCNO5ZNzhg7/8ViLkZ4CB/GrGBVSudo=", "narHash": "sha256-LzfUtFs9MQRvIoQ3MfgSuipBVMXslMPH/vZ+nM40LkA=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "1e1dc66fe68972a76679644a5577828b6a7e8be4", "rev": "df1eee2aa65052a18121ed4971081576b25d6b5c",
"type": "github" "type": "github"
}, },
"original": { "original": {

146
flake.nix
View file

@ -3,97 +3,63 @@
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
outputs = { outputs = { self, nixpkgs }:
self, let
nixpkgs, overlays = [
}: let (final: prev:
overlays = [ let
(final: prev: let exec = pkg: "${prev.${pkg}}/bin/${pkg}";
getSystem = "SYSTEM=$(nix eval --impure --raw --expr 'builtins.currentSystem')"; in
forEachDir = exec: '' {
for dir in */; do format = prev.writeScriptBin "format" ''
( ${exec "nixpkgs-fmt"} **/*.nix
cd "''${dir}" '';
dvt = prev.writeScriptBin "dvt" ''
if [ -z $1 ]; then
echo "no template specified"
exit 1
fi
${exec} TEMPLATE=$1
)
done
'';
in {
format = final.writeShellApplication {
name = "format";
runtimeInputs = with final; [nixpkgs-fmt];
text = "nixpkgs-fmt '**/*.nix'";
};
# only run this locally, as Actions will run out of disk space ${exec "nix"} \
build = final.writeShellApplication { --experimental-features 'nix-command flakes' \
name = "build"; flake init \
text = '' --template \
${getSystem} "github:the-nix-way/dev-templates#''${TEMPLATE}"
'';
${forEachDir '' update = prev.writeScriptBin "update" ''
echo "building ''${dir}" for dir in `ls -d */`; do # Iterate through all the templates
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
)
check = final.writeShellApplication { done
name = "check"; '';
text = forEachDir '' })
echo "checking ''${dir}" ];
nix flake check --all-systems --no-build 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; };
});
dvt = final.writeShellApplication { in
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; [build check format update]; packages = with pkgs; [ 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;
@ -125,11 +91,6 @@
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";
@ -155,11 +116,6 @@
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";
@ -230,11 +186,6 @@
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";
@ -250,11 +201,6 @@
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";

View file

@ -2,10 +2,12 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1717196966, "lastModified": 1703013332,
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=", "narHash": "sha256-+tFNwMvlXLbJZXiMHqYq77z/RfmpfpiI3yjL6o/Zo9M=",
"rev": "54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6",
"revCount": 561409,
"type": "tarball", "type": "tarball",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.561409%2Brev-54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6/018c8732-ea5c-725f-a6c9-9ed48683aa5a/source.tar.gz"
}, },
"original": { "original": {
"type": "tarball", "type": "tarball",

View file

@ -2,10 +2,12 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1717196966, "lastModified": 1703013332,
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=", "narHash": "sha256-+tFNwMvlXLbJZXiMHqYq77z/RfmpfpiI3yjL6o/Zo9M=",
"rev": "54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6",
"revCount": 561409,
"type": "tarball", "type": "tarball",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.561409%2Brev-54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6/018c8732-ea5c-725f-a6c9-9ed48683aa5a/source.tar.gz"
}, },
"original": { "original": {
"type": "tarball", "type": "tarball",

View file

@ -1,11 +1,11 @@
{ {
description = "A Nix-flake-based Go 1.22 development environment"; description = "A Nix-flake-based Go 1.17 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 = 22; # Change this to update the whole stack goVersion = 20; # 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.22 (specified by overlay) # go 1.20 (specified by overlay)
go_1_22 go
# goimports, godoc, etc. # goimports, godoc, etc.
gotools gotools

View file

@ -2,10 +2,12 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1717196966, "lastModified": 1703013332,
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=", "narHash": "sha256-+tFNwMvlXLbJZXiMHqYq77z/RfmpfpiI3yjL6o/Zo9M=",
"rev": "54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6",
"revCount": 561409,
"type": "tarball", "type": "tarball",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.561409%2Brev-54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6/018c8732-ea5c-725f-a6c9-9ed48683aa5a/source.tar.gz"
}, },
"original": { "original": {
"type": "tarball", "type": "tarball",

View file

@ -2,10 +2,12 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1717196966, "lastModified": 1703013332,
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=", "narHash": "sha256-+tFNwMvlXLbJZXiMHqYq77z/RfmpfpiI3yjL6o/Zo9M=",
"rev": "54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6",
"revCount": 561409,
"type": "tarball", "type": "tarball",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.561409%2Brev-54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6/018c8732-ea5c-725f-a6c9-9ed48683aa5a/source.tar.gz"
}, },
"original": { "original": {
"type": "tarball", "type": "tarball",

View file

@ -1,23 +0,0 @@
{
"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
}

View file

@ -1,26 +0,0 @@
{
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 ];
};
});
};
}

View file

@ -2,10 +2,12 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1717196966, "lastModified": 1703013332,
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=", "narHash": "sha256-+tFNwMvlXLbJZXiMHqYq77z/RfmpfpiI3yjL6o/Zo9M=",
"rev": "54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6",
"revCount": 561409,
"type": "tarball", "type": "tarball",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.561409%2Brev-54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6/018c8732-ea5c-725f-a6c9-9ed48683aa5a/source.tar.gz"
}, },
"original": { "original": {
"type": "tarball", "type": "tarball",

View file

@ -21,7 +21,7 @@
{ {
devShells = forEachSupportedSystem ({ pkgs }: { devShells = forEachSupportedSystem ({ pkgs }: {
default = pkgs.mkShell { default = pkgs.mkShell {
packages = with pkgs; [ gradle jdk maven jdt-language-server ]; packages = with pkgs; [ gradle jdk maven ];
}; };
}); });
}; };

View file

@ -1 +0,0 @@
use flake

View file

@ -1,23 +0,0 @@
{
"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
}

View file

@ -1,45 +0,0 @@
{
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
]);
};
});
};
}

View file

@ -2,10 +2,12 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1717196966, "lastModified": 1703013332,
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=", "narHash": "sha256-+tFNwMvlXLbJZXiMHqYq77z/RfmpfpiI3yjL6o/Zo9M=",
"rev": "54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6",
"revCount": 561409,
"type": "tarball", "type": "tarball",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.561409%2Brev-54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6/018c8732-ea5c-725f-a6c9-9ed48683aa5a/source.tar.gz"
}, },
"original": { "original": {
"type": "tarball", "type": "tarball",

View file

@ -2,10 +2,12 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1717196966, "lastModified": 1703013332,
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=", "narHash": "sha256-+tFNwMvlXLbJZXiMHqYq77z/RfmpfpiI3yjL6o/Zo9M=",
"rev": "54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6",
"revCount": 561409,
"type": "tarball", "type": "tarball",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.561409%2Brev-54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6/018c8732-ea5c-725f-a6c9-9ed48683aa5a/source.tar.gz"
}, },
"original": { "original": {
"type": "tarball", "type": "tarball",

View file

@ -2,10 +2,12 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1717196966, "lastModified": 1703013332,
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=", "narHash": "sha256-+tFNwMvlXLbJZXiMHqYq77z/RfmpfpiI3yjL6o/Zo9M=",
"rev": "54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6",
"revCount": 561409,
"type": "tarball", "type": "tarball",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.561409%2Brev-54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6/018c8732-ea5c-725f-a6c9-9ed48683aa5a/source.tar.gz"
}, },
"original": { "original": {
"type": "tarball", "type": "tarball",

View file

@ -2,10 +2,12 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1717196966, "lastModified": 1703013332,
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=", "narHash": "sha256-+tFNwMvlXLbJZXiMHqYq77z/RfmpfpiI3yjL6o/Zo9M=",
"rev": "54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6",
"revCount": 561409,
"type": "tarball", "type": "tarball",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.561409%2Brev-54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6/018c8732-ea5c-725f-a6c9-9ed48683aa5a/source.tar.gz"
}, },
"original": { "original": {
"type": "tarball", "type": "tarball",

View file

@ -2,10 +2,12 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1717196966, "lastModified": 1703013332,
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=", "narHash": "sha256-+tFNwMvlXLbJZXiMHqYq77z/RfmpfpiI3yjL6o/Zo9M=",
"rev": "54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6",
"revCount": 561409,
"type": "tarball", "type": "tarball",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.561409%2Brev-54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6/018c8732-ea5c-725f-a6c9-9ed48683aa5a/source.tar.gz"
}, },
"original": { "original": {
"type": "tarball", "type": "tarball",

View file

@ -3,29 +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 = { outputs = { self, nixpkgs }:
self, let
nixpkgs, supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
}: let forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
supportedSystems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"]; pkgs = import nixpkgs { inherit system; };
forEachSupportedSystem = f: });
nixpkgs.lib.genAttrs supportedSystems (system: in
f { {
pkgs = import nixpkgs {inherit system;}; devShells = forEachSupportedSystem ({ pkgs }: {
}); default = pkgs.mkShell {
in { packages = with pkgs; [
devShells = forEachSupportedSystem ({pkgs}: { cachix
default = pkgs.mkShell { lorri
packages = with pkgs; [ niv
cachix nixfmt
lorri statix
niv vulnix
alejandra haskellPackages.dhall-nix
statix rnix-lsp
vulnix ];
haskellPackages.dhall-nix };
]; });
}; };
});
};
} }

View file

@ -2,10 +2,12 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1717196966, "lastModified": 1703013332,
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=", "narHash": "sha256-+tFNwMvlXLbJZXiMHqYq77z/RfmpfpiI3yjL6o/Zo9M=",
"rev": "54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6",
"revCount": 561409,
"type": "tarball", "type": "tarball",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.561409%2Brev-54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6/018c8732-ea5c-725f-a6c9-9ed48683aa5a/source.tar.gz"
}, },
"original": { "original": {
"type": "tarball", "type": "tarball",

View file

@ -2,14 +2,18 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1717196966, "lastModified": 1689261696,
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=", "narHash": "sha256-LzfUtFs9MQRvIoQ3MfgSuipBVMXslMPH/vZ+nM40LkA=",
"type": "tarball", "owner": "NixOS",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "repo": "nixpkgs",
"rev": "df1eee2aa65052a18121ed4971081576b25d6b5c",
"type": "github"
}, },
"original": { "original": {
"type": "tarball", "owner": "NixOS",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
} }
}, },
"root": { "root": {

View file

@ -2,14 +2,18 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1717196966, "lastModified": 1689261696,
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=", "narHash": "sha256-LzfUtFs9MQRvIoQ3MfgSuipBVMXslMPH/vZ+nM40LkA=",
"type": "tarball", "owner": "NixOS",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "repo": "nixpkgs",
"rev": "df1eee2aa65052a18121ed4971081576b25d6b5c",
"type": "github"
}, },
"original": { "original": {
"type": "tarball", "owner": "NixOS",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
} }
}, },
"root": { "root": {

View file

@ -2,14 +2,18 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1717196966, "lastModified": 1689261696,
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=", "narHash": "sha256-LzfUtFs9MQRvIoQ3MfgSuipBVMXslMPH/vZ+nM40LkA=",
"type": "tarball", "owner": "NixOS",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "repo": "nixpkgs",
"rev": "df1eee2aa65052a18121ed4971081576b25d6b5c",
"type": "github"
}, },
"original": { "original": {
"type": "tarball", "owner": "NixOS",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
} }
}, },
"root": { "root": {

View file

@ -2,14 +2,18 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1717196966, "lastModified": 1689261696,
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=", "narHash": "sha256-LzfUtFs9MQRvIoQ3MfgSuipBVMXslMPH/vZ+nM40LkA=",
"type": "tarball", "owner": "NixOS",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "repo": "nixpkgs",
"rev": "df1eee2aa65052a18121ed4971081576b25d6b5c",
"type": "github"
}, },
"original": { "original": {
"type": "tarball", "owner": "NixOS",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
} }
}, },
"root": { "root": {

View file

@ -2,14 +2,18 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1717196966, "lastModified": 1689261696,
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=", "narHash": "sha256-LzfUtFs9MQRvIoQ3MfgSuipBVMXslMPH/vZ+nM40LkA=",
"type": "tarball", "owner": "NixOS",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "repo": "nixpkgs",
"rev": "df1eee2aa65052a18121ed4971081576b25d6b5c",
"type": "github"
}, },
"original": { "original": {
"type": "tarball", "owner": "NixOS",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
} }
}, },
"root": { "root": {

View file

@ -25,7 +25,7 @@
python311 python311
# Go SDK # Go SDK
go_1_22 go_1_20
# Node.js SDK # Node.js SDK
nodejs nodejs

View file

@ -3,11 +3,11 @@
"easy-purescript-nix": { "easy-purescript-nix": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1710161569, "lastModified": 1686900973,
"narHash": "sha256-lcIRIOFCdIWEGyKyG/tB4KvxM9zoWuBRDxW+T+mvIb0=", "narHash": "sha256-9whTjp8BYy8ZzyghhgbawS06/dVESduME3wsdNH/mpk=",
"owner": "justinwoo", "owner": "justinwoo",
"repo": "easy-purescript-nix", "repo": "easy-purescript-nix",
"rev": "117fd96acb69d7d1727df95b6fde9d8715e031fc", "rev": "8cf400656945b2f2bacfd6a8775792aa701f60e9",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -18,14 +18,18 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1717196966, "lastModified": 1689261696,
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=", "narHash": "sha256-LzfUtFs9MQRvIoQ3MfgSuipBVMXslMPH/vZ+nM40LkA=",
"type": "tarball", "owner": "NixOS",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "repo": "nixpkgs",
"rev": "df1eee2aa65052a18121ed4971081576b25d6b5c",
"type": "github"
}, },
"original": { "original": {
"type": "tarball", "owner": "NixOS",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
} }
}, },
"root": { "root": {

View file

@ -2,7 +2,7 @@
description = "A Nix-flake-based Purescript development environment"; description = "A Nix-flake-based Purescript development environment";
inputs = { 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";
easy-purescript-nix = { easy-purescript-nix = {
url = "github:justinwoo/easy-purescript-nix"; url = "github:justinwoo/easy-purescript-nix";
flake = false; flake = false;

View file

@ -2,14 +2,18 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1717196966, "lastModified": 1689261696,
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=", "narHash": "sha256-LzfUtFs9MQRvIoQ3MfgSuipBVMXslMPH/vZ+nM40LkA=",
"type": "tarball", "owner": "NixOS",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "repo": "nixpkgs",
"rev": "df1eee2aa65052a18121ed4971081576b25d6b5c",
"type": "github"
}, },
"original": { "original": {
"type": "tarball", "owner": "NixOS",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
} }
}, },
"root": { "root": {

View file

@ -3,27 +3,19 @@
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 = { outputs = { self, nixpkgs }:
self, let
nixpkgs, supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
}: let forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
supportedSystems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"]; pkgs = import nixpkgs { inherit system; };
forEachSupportedSystem = f: });
nixpkgs.lib.genAttrs supportedSystems (system: in
f { {
pkgs = import nixpkgs {inherit system;}; devShells = forEachSupportedSystem ({ pkgs }: {
}); default = pkgs.mkShell {
in { packages = with pkgs; [ python311 virtualenv ] ++
devShells = forEachSupportedSystem ({pkgs}: { (with pkgs.python311Packages; [ pip ]);
default = pkgs.mkShell { };
packages = with pkgs; });
[python311] };
++ (with pkgs.python311Packages; [
pip
python-lsp-server
python-lsp-ruff
]);
};
});
};
} }

View file

@ -1,14 +0,0 @@
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"

View file

@ -2,14 +2,18 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1717196966, "lastModified": 1689261696,
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=", "narHash": "sha256-LzfUtFs9MQRvIoQ3MfgSuipBVMXslMPH/vZ+nM40LkA=",
"type": "tarball", "owner": "NixOS",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "repo": "nixpkgs",
"rev": "df1eee2aa65052a18121ed4971081576b25d6b5c",
"type": "github"
}, },
"original": { "original": {
"type": "tarball", "owner": "NixOS",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
} }
}, },
"root": { "root": {

View file

@ -5,11 +5,11 @@
"systems": "systems" "systems": "systems"
}, },
"locked": { "locked": {
"lastModified": 1705309234, "lastModified": 1681202837,
"narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=", "narHash": "sha256-H+Rh19JDwRtpVPAWp64F+rlEtxUWBAQW28eAi3SRSzg=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26", "rev": "cfacdce06f30d2b68473a46042957675eebb3401",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -20,14 +20,34 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1717196966, "lastModified": 1689261696,
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=", "narHash": "sha256-LzfUtFs9MQRvIoQ3MfgSuipBVMXslMPH/vZ+nM40LkA=",
"type": "tarball", "owner": "NixOS",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "repo": "nixpkgs",
"rev": "df1eee2aa65052a18121ed4971081576b25d6b5c",
"type": "github"
}, },
"original": { "original": {
"type": "tarball", "owner": "NixOS",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "ref": "nixpkgs-unstable",
"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": {
@ -39,16 +59,14 @@
"rust-overlay": { "rust-overlay": {
"inputs": { "inputs": {
"flake-utils": "flake-utils", "flake-utils": "flake-utils",
"nixpkgs": [ "nixpkgs": "nixpkgs_2"
"nixpkgs"
]
}, },
"locked": { "locked": {
"lastModified": 1717467480, "lastModified": 1689302058,
"narHash": "sha256-9Fbar+ycxdfZ6HbwOCgD+jWG3du/12TFisKRQm4Zhfc=", "narHash": "sha256-yD74lcHTrw4niXcE9goJLbzsgyce48rQQoy5jK5ZK40=",
"owner": "oxalica", "owner": "oxalica",
"repo": "rust-overlay", "repo": "rust-overlay",
"rev": "260ff391290a2b23958d04db0d3e7015c8417401", "rev": "7b8dbbf4c67ed05a9bf3d9e658c12d4108bc24c8",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -2,7 +2,7 @@
description = "A Nix-flake-based Rust development environment"; description = "A Nix-flake-based Rust development environment";
inputs = { 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";
rust-overlay = { rust-overlay = {
url = "github:oxalica/rust-overlay"; url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";

View file

@ -5,11 +5,11 @@
"systems": "systems" "systems": "systems"
}, },
"locked": { "locked": {
"lastModified": 1705309234, "lastModified": 1681202837,
"narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=", "narHash": "sha256-H+Rh19JDwRtpVPAWp64F+rlEtxUWBAQW28eAi3SRSzg=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26", "rev": "cfacdce06f30d2b68473a46042957675eebb3401",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -20,14 +20,34 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1717196966, "lastModified": 1689261696,
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=", "narHash": "sha256-LzfUtFs9MQRvIoQ3MfgSuipBVMXslMPH/vZ+nM40LkA=",
"type": "tarball", "owner": "NixOS",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "repo": "nixpkgs",
"rev": "df1eee2aa65052a18121ed4971081576b25d6b5c",
"type": "github"
}, },
"original": { "original": {
"type": "tarball", "owner": "NixOS",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "ref": "nixpkgs-unstable",
"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": {
@ -39,16 +59,14 @@
"rust-overlay": { "rust-overlay": {
"inputs": { "inputs": {
"flake-utils": "flake-utils", "flake-utils": "flake-utils",
"nixpkgs": [ "nixpkgs": "nixpkgs_2"
"nixpkgs"
]
}, },
"locked": { "locked": {
"lastModified": 1717467480, "lastModified": 1689302058,
"narHash": "sha256-9Fbar+ycxdfZ6HbwOCgD+jWG3du/12TFisKRQm4Zhfc=", "narHash": "sha256-yD74lcHTrw4niXcE9goJLbzsgyce48rQQoy5jK5ZK40=",
"owner": "oxalica", "owner": "oxalica",
"repo": "rust-overlay", "repo": "rust-overlay",
"rev": "260ff391290a2b23958d04db0d3e7015c8417401", "rev": "7b8dbbf4c67ed05a9bf3d9e658c12d4108bc24c8",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -2,7 +2,7 @@
description = "A Nix-flake-based Rust development environment"; description = "A Nix-flake-based Rust development environment";
inputs = { 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";
rust-overlay = { rust-overlay = {
url = "github:oxalica/rust-overlay"; url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
@ -23,9 +23,7 @@
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.override { rust.stable.latest.default;
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" ];

View file

@ -1,8 +0,0 @@
build:
cargo build
test:
cargo test
run:
cargo run

View file

@ -1 +0,0 @@
use flake

View file

@ -1,78 +0,0 @@
{
"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
}

View file

@ -1,48 +0,0 @@
{
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
];
};
});
};
}

View file

@ -1,2 +0,0 @@
[toolchain]
channel = "1.69.0"

View file

@ -2,14 +2,18 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1717196966, "lastModified": 1689261696,
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=", "narHash": "sha256-LzfUtFs9MQRvIoQ3MfgSuipBVMXslMPH/vZ+nM40LkA=",
"type": "tarball", "owner": "NixOS",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "repo": "nixpkgs",
"rev": "df1eee2aa65052a18121ed4971081576b25d6b5c",
"type": "github"
}, },
"original": { "original": {
"type": "tarball", "owner": "NixOS",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
} }
}, },
"root": { "root": {

View file

@ -2,14 +2,18 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1717196966, "lastModified": 1689261696,
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=", "narHash": "sha256-LzfUtFs9MQRvIoQ3MfgSuipBVMXslMPH/vZ+nM40LkA=",
"type": "tarball", "owner": "NixOS",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "repo": "nixpkgs",
"rev": "df1eee2aa65052a18121ed4971081576b25d6b5c",
"type": "github"
}, },
"original": { "original": {
"type": "tarball", "owner": "NixOS",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
} }
}, },
"root": { "root": {

View file

@ -1,23 +0,0 @@
{
"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
}

View file

@ -1,22 +0,0 @@
{
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
];
};
});
};
}

View file

@ -2,14 +2,18 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1717196966, "lastModified": 1689261696,
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=", "narHash": "sha256-LzfUtFs9MQRvIoQ3MfgSuipBVMXslMPH/vZ+nM40LkA=",
"type": "tarball", "owner": "NixOS",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "repo": "nixpkgs",
"rev": "df1eee2aa65052a18121ed4971081576b25d6b5c",
"type": "github"
}, },
"original": { "original": {
"type": "tarball", "owner": "NixOS",
"url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" "ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
} }
}, },
"root": { "root": {