Skip to content

Commit

Permalink
Update _index.md
Browse files Browse the repository at this point in the history
  • Loading branch information
viperML authored Dec 12, 2023
1 parent 39c05b3 commit 3a4c510
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions doc/content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <nixpkgs> {};
# 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:
Expand Down Expand Up @@ -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.
- Added wrappers.name.renames option.

0 comments on commit 3a4c510

Please sign in to comment.