mirror of
https://git.sr.ht/~bryan_bennett/flake_env
synced 2025-12-16 14:41:24 +01:00
Fix depends specification
This commit is contained in:
parent
606d717276
commit
358ae864fc
2 changed files with 23 additions and 15 deletions
10
default.nix
10
default.nix
|
|
@ -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";
|
||||
|
|
|
|||
28
flake.nix
28
flake.nix
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue