delegate pin management to tack
This commit is contained in:
parent
070c3f0a7f
commit
c42b5abba8
5 changed files with 35 additions and 163 deletions
|
|
@ -5,6 +5,7 @@
|
|||
nushell,
|
||||
makeBinaryWrapper,
|
||||
version,
|
||||
tack,
|
||||
differ ? pkgs.dix,
|
||||
monitor ? pkgs.nix-output-monitor,
|
||||
...
|
||||
|
|
@ -26,7 +27,8 @@ stdenvNoCC.mkDerivation {
|
|||
makeBinaryWrapper ${nushell}/bin/nu $out/bin/meat \
|
||||
--add-flags "$out/share/meat/meat.nu" \
|
||||
--set DIFFER ${lib.getExe differ} \
|
||||
--set MONITOR ${lib.getExe monitor}
|
||||
--set MONITOR ${lib.getExe monitor} \
|
||||
--set TACK ${lib.getExe tack}
|
||||
runHook postInstall
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,6 +29,10 @@ in
|
|||
description = "nix monitoring tool to use";
|
||||
default = pkgs.nix-output-monitor;
|
||||
};
|
||||
tack = mkOption {
|
||||
type = types.package;
|
||||
description = "tack pin manager";
|
||||
};
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.sessionVariables.MEATS = cfg.flake;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue