feat(prolog): Add flake
This commit is contained in:
parent
5a276cf483
commit
fe81f7cd15
2 changed files with 88 additions and 0 deletions
27
prolog/flake.nix
Normal file
27
prolog/flake.nix
Normal 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
|
||||
];
|
||||
};
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue