diff --git a/doc/content/_index.md b/doc/content/_index.md index ede51f2..6c7c625 100644 --- a/doc/content/_index.md +++ b/doc/content/_index.md @@ -110,20 +110,30 @@ First, you need to instantiate wrapper-manager's lib. This can be done by pullin Wrapper-manager can be pulled in a classic (non-flake) setup for a devshell or nixos configuration, like so: ```nix -# shell.nix , or configuration.nix - -# or {pkgs, config, ...}: if you are in NixOS... +# shell.nix let pkgs = import {}; - # optionally, pin a commit instead of using master wrapper-manager = import (builtins.fetchTarball "https://github.com/viperML/wrapper-manager/archive/refs/heads/master.tar.gz") { inherit (pkgs) lib; }; in - ... + mkShell { ..... } ``` +```nix +# configuration.nix +{ config, pkgs, lib, ... }: let + # optionally, pin a commit instead of using master + wrapper-manager = import (builtins.fetchTarball "https://github.com/viperML/wrapper-manager/archive/refs/heads/master.tar.gz") { + inherit (pkgs) lib; + }; +in { + ..... +} +``` + + ### Evaluating Now that you already have `wrapper-manager` in scope, you need to evaluate `wrapper-manager.lib`. The argument is an attrset with following elements: @@ -208,4 +218,4 @@ https://github.com/viperML/wrapper-manager/issues - Changed the way wrapper.name.flags is handled so that every flag is escaped - 2023-08-12 - - Added wrappers.name.renames option. \ No newline at end of file + - Added wrappers.name.renames option.