mirror of
https://git.sr.ht/~bryan_bennett/flake_env
synced 2025-12-16 22:51:24 +01:00
Initial commit
This commit is contained in:
commit
69aedbe308
10 changed files with 576 additions and 0 deletions
44
default.nix
Normal file
44
default.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{ buildDunePackage
|
||||
, lib
|
||||
, core
|
||||
, core_unix
|
||||
, findlib
|
||||
, ocaml
|
||||
, ppx_yojson_conv
|
||||
, ppx_yojson_conv_lib
|
||||
, re
|
||||
, reason
|
||||
, sha
|
||||
}:
|
||||
buildDunePackage {
|
||||
pname = "flake_env";
|
||||
version = "0.1";
|
||||
src = ./.;
|
||||
duneVersion = "3";
|
||||
postPatch = ''
|
||||
substituteInPlace --replace "flake_env" "$out/bin/flake_env" direnvrc
|
||||
'';
|
||||
postInstall = ''
|
||||
install -m400 -D direnvrc $out/share/flake_env/direnvrc
|
||||
'';
|
||||
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";
|
||||
homepage = "https://git.sr.ht/~bryan_bennett/flake_env";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue