2021-04-12 18:23:04 +00:00
|
|
|
{ lib, skawarePackages }:
|
|
|
|
|
|
|
|
with skawarePackages;
|
|
|
|
|
|
|
|
buildPackage {
|
|
|
|
pname = "mdevd";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "0.1.6.1";
|
|
|
|
sha256 = "XAHk55QW22zZk++KkBRii48fC2xkMnWYhIhRL6pUBLE=";
|
2021-04-12 18:23:04 +00:00
|
|
|
|
|
|
|
description = "mdev-compatible Linux hotplug manager daemon";
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
|
|
|
|
outputs = [ "bin" "out" "dev" "doc" ];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-sysdeps=${skalibs.lib}/lib/skalibs/sysdeps"
|
|
|
|
"--with-include=${skalibs.dev}/include"
|
|
|
|
"--with-lib=${skalibs.lib}/lib"
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
# remove all mdevd executables from build directory
|
|
|
|
rm $(find -type f -mindepth 1 -maxdepth 1 -executable)
|
2023-01-20 10:41:00 +00:00
|
|
|
rm libmdevd.*
|
2021-04-12 18:23:04 +00:00
|
|
|
|
|
|
|
mv doc $doc/share/doc/mdevd/html
|
|
|
|
mv examples $doc/share/doc/mdevd/examples
|
|
|
|
'';
|
|
|
|
}
|