2024-04-21 15:54:59 +00:00
|
|
|
{ lib, skawarePackages, skalibs }:
|
2021-04-12 18:23:04 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
skawarePackages.buildPackage {
|
2021-04-12 18:23:04 +00:00
|
|
|
pname = "mdevd";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "0.1.6.4";
|
|
|
|
sha256 = "c1jOUwtrm++3FeSBkJgem2mhLMqFhRnm0uS0bqt+JHA=";
|
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
|
|
|
|
'';
|
|
|
|
}
|