new library: added containers as a dependency.
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

This commit is contained in:
2026-01-01 13:36:09 +03:00
parent d401548d1d
commit bc7ca0fa2d
3 changed files with 11 additions and 7 deletions

6
flake.lock generated
View File

@@ -20,11 +20,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1764950072, "lastModified": 1766902085,
"narHash": "sha256-BmPWzogsG2GsXZtlT+MTcAWeDK5hkbGRZTeZNW42fwA=", "narHash": "sha256-coBu0ONtFzlwwVBzmjacUQwj3G+lybcZ1oeNSQkgC0M=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "f61125a668a320878494449750330ca58b78c557", "rev": "c0b0e0fddf73fd517c3471e546c0df87a42d53f4",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -11,17 +11,21 @@
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
devInputs = with pkgs.ocamlPackages; [merlin]; devInputs = with pkgs.ocamlPackages; [merlin];
ocamlPkgs = with pkgs.ocamlPackages; [menhir dune_3]; ocamlPkgs = with pkgs.ocamlPackages; [menhir dune_3];
libs = with pkgs.ocamlPackages; [findlib containers];
nativeInputs = with pkgs; ocamlPkgs ++ [ocaml]; nativeInputs = with pkgs; ocamlPkgs ++ [ocaml];
in in
{ {
packages.default = pkgs.ocamlPackages.buildDunePackage { packages.default = (pkgs.ocamlPackages.buildDunePackage {
pname = "ollisp"; pname = "ollisp";
version = "0.0.1"; version = "0.0.1";
src = pkgs.lib.cleanSource ./.; src = pkgs.lib.cleanSource ./.;
nativeBuildInputs = nativeInputs; nativeBuildInputs = nativeInputs;
}; buildInputs = libs;
});
devShells.default = pkgs.mkShell { devShells.default = pkgs.mkShell {
nativeBuildInputs = nativeInputs ++ devInputs; nativeBuildInputs = nativeInputs ++ devInputs;
buildInputs = libs;
}; };
}); });
} }

View File

@@ -1,3 +1,3 @@
(library (library
(name compiler) (name compiler)
(libraries parser)) (libraries parser containers))