Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ Once your preferred template has been initialized, you can use the provided shel
| [Rust] | [`rust`](./rust/) |
| [Rust from toolchain file][rust] | [`rust-toolchain`](./rust-toolchain/) |
| [Scala] | [`scala`](./scala/) |
| [Shell](#shell) | [`shell`](./shell/) |
| [Shell] | [`shell`](./shell/) |
| [Swi-prolog] | [`swi-prolog`](./swi-prolog/) |
| [Swift] | [`swift`](./swift) |
| [Vlang] | [`vlang`](./vlang/) |
| [Zig] | [`zig`](./zig/) |
Expand Down Expand Up @@ -299,6 +300,10 @@ A dev template that's fully customizable.

- [shellcheck] 0.9.0

### [`swi-prolog`](./swi-prolog/)

- [swi-prolog]

### [`swift`](./swift/)

- [Swift] 5.8
Expand Down Expand Up @@ -434,6 +439,7 @@ All of the templates have only the root [flake](./flake.nix) as a flake input. T
[sbt]: https://scala-sbt.org
[sourcekit-lsp]: https://github.com/swiftlang/sourcekit-lsp
[spago]: https://github.com/purescript/spago
[swi-prolog]: https://www.swi-prolog.org
[swift]: https://swift.org
[tectonic]: https://tectonic-typesetting.github.io
[terraform]: https://terraform.io
Expand Down
5 changes: 5 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,11 @@
description = "Shell script development environment";
};

swi-prolog = {
path = ./swi-prolog;
description = "Swi-prolog development environment";
};

swift = {
path = ./swift;
description = "Swift development environment";
Expand Down
1 change: 1 addition & 0 deletions swi-prolog/.envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
25 changes: 25 additions & 0 deletions swi-prolog/flake.lock

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

20 changes: 20 additions & 0 deletions swi-prolog/flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
description = "A Nix-flake-based Swi-prolog 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; [ swi-prolog ];
};
});
};
}
Loading