Skip to content

Commit

Permalink
Add swi-prolog environment
Browse files Browse the repository at this point in the history
  • Loading branch information
Fede-26 committed Oct 25, 2024
1 parent ff07f4f commit 1d7e83f
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 0 deletions.
5 changes: 5 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,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 ];
};
});
};
}

0 comments on commit 1d7e83f

Please sign in to comment.