Fix depends specification

This commit is contained in:
Bryan Bennett 2024-03-23 08:16:51 -04:00
parent 606d717276
commit 358ae864fc
No known key found for this signature in database
GPG key ID: EE149E4215408DE9
2 changed files with 23 additions and 15 deletions

View file

@ -30,7 +30,6 @@ buildDunePackage {
./flake.lock ./flake.lock
./flake_env.opam ./flake_env.opam
./direnvrc ./direnvrc
./LICENSE
]; ];
}; };
duneVersion = "3"; duneVersion = "3";
@ -42,9 +41,16 @@ buildDunePackage {
postInstall = '' postInstall = ''
install -m400 -D direnvrc $out/share/flake_env/direnvrc install -m400 -D direnvrc $out/share/flake_env/direnvrc
''; '';
buildInputs = [
core
core_unix
ppx_yojson_conv
ppx_yojson_conv_lib
re
sha
];
checkInputs = [ alcotest bisect_ppx ]; checkInputs = [ alcotest bisect_ppx ];
nativeBuildInputs = [ reason ]; nativeBuildInputs = [ reason ];
propagatedBuildInputs = [ core core_unix findlib ocaml ppx_yojson_conv ppx_yojson_conv_lib re sha ];
meta = with lib; { meta = with lib; {
description = "Yet another flake plugin for direnv"; description = "Yet another flake plugin for direnv";

View file

@ -39,19 +39,21 @@
}; };
devShells.default = pkgs.mkShell { devShells.default = pkgs.mkShell {
inputsFrom = [ self'.packages.default ]; inputsFrom = [ self'.packages.default ];
packages = [ packages = builtins.attrValues {
pkgs.just inherit (pkgs)
pkgs.rnix-lsp just
pkgs.pre-commit nil
pkgs.ocamlPackages.alcotest pre-commit
pkgs.ocamlPackages.bisect_ppx ;
pkgs.ocamlPackages.dune_3 inherit (pkgs.ocamlPackages)
pkgs.ocamlPackages.findlib dune_3
pkgs.ocamlPackages.ocaml findlib
pkgs.ocamlPackages.ocaml-lsp ocaml
pkgs.ocamlPackages.ocamlformat ocaml-lsp
pkgs.ocamlPackages.ocamlformat-rpc-lib ocamlformat
]; ocamlformat-rpc-lib
;
};
shellHook = config.pre-commit.installationScript; shellHook = config.pre-commit.installationScript;
}; };
pre-commit = { pre-commit = {