feat(prolog): Add flake

This commit is contained in:
Tibo De Peuter 2025-09-22 07:56:57 +02:00
parent 5a276cf483
commit fe81f7cd15
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
2 changed files with 88 additions and 0 deletions

27
prolog/flake.nix Normal file
View file

@ -0,0 +1,27 @@
{
description = "SWI-Prolog";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
in {
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
swi-prolog
# Editor
#(jetbrains.plugins.addPlugins jetbrains.idea-ultimate [ "github-copilot" ])
vscodium
];
};
});
}