File tree 2 files changed +19
-2
lines changed 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,23 @@ nixpkgs.overlays = [
29
29
];
30
30
```
31
31
32
+ The user can map package(s) in Nixpkgs to a ` pkgconfig-depends ` name by
33
+ overlaying the ` haskell-nix.extraPkgconfigMappings ` attribute:
34
+
35
+ ``` nix
36
+ nixpkgs.overlays = [
37
+ (self: super: {
38
+ haskell-nix = super.haskell-nix // {
39
+ extraPkgconfigMappings = super.haskell-nix.extraPkgconfigMappings // {
40
+ # String pkgconfig-depends names are mapped to lists of Nixpkgs
41
+ # package names
42
+ "SDL_gpu" = [ "SDL_gpu" ];
43
+ };
44
+ };
45
+ })
46
+ ];
47
+ ```
48
+
32
49
### Replace libraries of components
33
50
34
51
If a component is missing a dependency it can be added via modules. For example:
@@ -59,7 +76,7 @@ the Haskell.nix sources, so that it's solved for all users.
59
76
— for ` build-tool-depends ` , ` frameworks ` , ` extra-libraries ` , etc.
60
77
61
78
Each name can be mapped to:
62
- 1 . A single package from nixkpgs .
79
+ 1 . A single package from nixpkgs .
63
80
2 . ` null ` — eliminates the dependency
64
81
3 . A list of packages — sometimes needed for dependencies such as ` X11 ` .
65
82
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ final: prev: {
11
11
# overlays.
12
12
defaultModules = [ ] ;
13
13
14
- # TODO: doc etc
14
+ # Additional user-provided mappings to augment ./../lib/pkgconf-nixpkgs-map.nix
15
15
extraPkgconfigMappings = { } ;
16
16
# Nix Flake based source pins.
17
17
# To update all inputs, get unstable Nix and then `nix flake update --recreate-lock-file`
You can’t perform that action at this time.
0 commit comments