Skip to content

Commit

Permalink
add release shell
Browse files Browse the repository at this point in the history
  • Loading branch information
anmonteiro committed Sep 15, 2023
1 parent de0d99b commit 3652533
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@
melange-src.overlays.default
];
inherit (pkgs) nodejs_latest lib stdenv darwin;
mkShell = { inputsFrom, buildInputs ? [ ] }: pkgs.mkShell {
nativeBuildInputs = with pkgs; [
yarn
nodejs_latest
] ++ (with pkgs.ocamlPackages; [
ocamlformat
merlin
]);
inherit inputsFrom buildInputs;
};
in
rec {
packages = {
Expand All @@ -36,15 +46,14 @@
propagatedBuildInputs = with pkgs.ocamlPackages; [ melange ];
};
};
devShells.default = pkgs.mkShell {
inputsFrom = [ packages.default ];
nativeBuildInputs = with pkgs; [
yarn
nodejs_latest
] ++ (with pkgs.ocamlPackages; [
ocamlformat
merlin
]);
devShells = {
default = mkShell {
inputsFrom = [ packages.default ];
};
release = mkShell {
inputsFrom = [ packages.default ];
buildInputs = with pkgs; [ cacert curl ocamlPackages.dune-release git ];
};
};
});
}

0 comments on commit 3652533

Please sign in to comment.