Skip to content

Commit

Permalink
Merge pull request NixOS#947 from unixzii/patch-1
Browse files Browse the repository at this point in the history
fix code block header in callpackage.md
  • Loading branch information
infinisil authored Mar 28, 2024
2 parents 89157c7 + ea2a505 commit bdbdd7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/tutorials/callpackage.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,11 @@ This can become quite tedious quickly, especially for larger package sets.

Use `lib.callPackageWith` to create your own `callPackage` based on an attribute set.

```
```{code-block} nix
:caption: default.nix
let
pkgs = import <nixpkgs> { };
callPackage = lib.callPackageWith (pkgs // packages);
callPackage = pkgs.lib.callPackageWith (pkgs // packages);
packages = {
a = callPackage ./a.nix { };
b = callPackage ./b.nix { };
Expand Down

0 comments on commit bdbdd7d

Please sign in to comment.