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": {
|
"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": {
|
||||||
|
|||||||
@@ -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;
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
(library
|
(library
|
||||||
(name compiler)
|
(name compiler)
|
||||||
(libraries parser))
|
(libraries parser containers))
|
||||||
|
|||||||
Reference in New Issue
Block a user