Files
olisp/flake.nix
haxala1r bc7ca0fa2d
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/manual/build Pipeline was successful
ci/woodpecker/cron/build Pipeline was successful
new library: added containers as a dependency.
2026-01-01 13:36:09 +03:00

32 lines
917 B
Nix

{
description = "a lisp interpreter/compiler in ocaml";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = {self, nixpkgs, flake-utils}:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
devInputs = with pkgs.ocamlPackages; [merlin];
ocamlPkgs = with pkgs.ocamlPackages; [menhir dune_3];
libs = with pkgs.ocamlPackages; [findlib containers];
nativeInputs = with pkgs; ocamlPkgs ++ [ocaml];
in
{
packages.default = (pkgs.ocamlPackages.buildDunePackage {
pname = "ollisp";
version = "0.0.1";
src = pkgs.lib.cleanSource ./.;
nativeBuildInputs = nativeInputs;
buildInputs = libs;
});
devShells.default = pkgs.mkShell {
nativeBuildInputs = nativeInputs ++ devInputs;
buildInputs = libs;
};
});
}