Merge pull request #495 from GlassGhost/patch-1
extended readme.md to explain how to provide shared object libraries and find which package provides them
This commit is contained in:
commit
f15ea8677d
1 changed files with 23 additions and 0 deletions
23
examples.md
23
examples.md
|
@ -215,6 +215,29 @@ mach-nix.mkPython {
|
|||
_.ldap0.buildInputs.add = [ openldap.dev cyrus_sasl.dev ];
|
||||
}
|
||||
|
||||
```
|
||||
### Example: add missing .so shared object library for instance you are getting a `Pyside on nixos ImportError: libgssapi_krb5.so.2` error
|
||||
|
||||
If you have nix-index package installed you should be able to find the package that should provide the lib fast with
|
||||
|
||||
nix-locate -1 -w libgssapi_krb5.so.2 | grep -v \(
|
||||
libkrb5.out
|
||||
krb5.out
|
||||
hyperion-ng.out
|
||||
|
||||
|
||||
Once you have decided on the lib in this case libkrb5 for pyside2
|
||||
```nix
|
||||
...
|
||||
with mach-nix.nixpkgs;
|
||||
mach-nix.mkPython {
|
||||
|
||||
requirements = "web2ldap";
|
||||
|
||||
# add missing os library to libkrb5
|
||||
_.pyside2.buildInputs.add = with pkgs; [ libkrb5 ]; # LINE ADDED
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
## Overrides (overridesPre / overridesPost)
|
||||
|
|
Loading…
Reference in a new issue