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.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";
|
||||||
|
|
|
||||||
28
flake.nix
28
flake.nix
|
|
@ -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 = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue