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_env.opam
./direnvrc
./LICENSE
];
};
duneVersion = "3";
@ -42,9 +41,16 @@ buildDunePackage {
postInstall = ''
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 ];
nativeBuildInputs = [ reason ];
propagatedBuildInputs = [ core core_unix findlib ocaml ppx_yojson_conv ppx_yojson_conv_lib re sha ];
meta = with lib; {
description = "Yet another flake plugin for direnv";

View file

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