tsm-client: fix lvm2 support

lvm2 support was broken when lvm2 got
converted to a multiple-output derivation:

https://github.com/NixOS/nixpkgs/pull/93024
https://github.com/NixOS/nixpkgs/commit/d3a991d41028c5d2a5af2796c0bb542836457822

The `runtimeDependencies` attribute doesn't specifically
look for a `lib` output, so it uses the main `out` output
which no longer contains the library object files.

Since TSM loads the `libdevmapper.so` library
dynamically (likely with `dlfcn.h` functions),
the breakage couldn't be detected at build time.

The commit at hand simply uses
`getLib` to pick the correct output.
This commit is contained in:
Yarny0
2022-01-17 12:09:23 +01:00
parent 5aaed40d22
commit 6e157a481a
+1 -1
View File
@@ -91,7 +91,7 @@ let
zlib
];
runtimeDependencies = [
lvm2
(lib.attrsets.getLib lvm2)
];
sourceRoot = ".";