new library: added containers as a dependency.
This commit is contained in:
6
flake.lock
generated
6
flake.lock
generated
@@ -20,11 +20,11 @@
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1764950072,
|
||||
"narHash": "sha256-BmPWzogsG2GsXZtlT+MTcAWeDK5hkbGRZTeZNW42fwA=",
|
||||
"lastModified": 1766902085,
|
||||
"narHash": "sha256-coBu0ONtFzlwwVBzmjacUQwj3G+lybcZ1oeNSQkgC0M=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "f61125a668a320878494449750330ca58b78c557",
|
||||
"rev": "c0b0e0fddf73fd517c3471e546c0df87a42d53f4",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
||||
10
flake.nix
10
flake.nix
@@ -11,17 +11,21 @@
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
devInputs = with pkgs.ocamlPackages; [merlin];
|
||||
ocamlPkgs = with pkgs.ocamlPackages; [menhir dune_3];
|
||||
nativeInputs = with pkgs; ocamlPkgs ++ [ocaml];
|
||||
libs = with pkgs.ocamlPackages; [findlib containers];
|
||||
nativeInputs = with pkgs; ocamlPkgs ++ [ocaml];
|
||||
in
|
||||
{
|
||||
packages.default = pkgs.ocamlPackages.buildDunePackage {
|
||||
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;
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
(library
|
||||
(name compiler)
|
||||
(libraries parser))
|
||||
(libraries parser containers))
|
||||
|
||||
Reference in New Issue
Block a user