ocaml
This commit is contained in:
commit
e598b04cae
31 changed files with 946 additions and 0 deletions
17
nix/default.nix
Normal file
17
nix/default.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
ocamlPackages,
|
||||
buildInputs,
|
||||
git,
|
||||
version,
|
||||
...
|
||||
}:
|
||||
ocamlPackages.buildDunePackage {
|
||||
pname = "meat";
|
||||
version = "0.1-delicious-${version}";
|
||||
|
||||
minimalOCamlVersion = "5.2";
|
||||
|
||||
src = ./..;
|
||||
nativeBuildInputs = [ git ];
|
||||
buildInputs = buildInputs;
|
||||
}
|
||||
32
nix/module.nix
Normal file
32
nix/module.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkEnableOption mkOption types;
|
||||
cfg = config.programs.meat;
|
||||
in
|
||||
{
|
||||
options.programs.meat = {
|
||||
enable = mkEnableOption "meat";
|
||||
flake = mkOption {
|
||||
type = with types; either path str;
|
||||
description = "path to your system flake";
|
||||
};
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
description = "your ideal meat";
|
||||
};
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.sessionVariables.MEATS = cfg.flake;
|
||||
environment.systemPackages = [
|
||||
cfg.package
|
||||
pkgs.nh # for now..
|
||||
pkgs.nix-output-monitor
|
||||
pkgs.dix
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue