1{ lib, skawarePackages }:
2
3with skawarePackages;
4
5buildPackage {
6 pname = "mdevd";
7 version = "0.1.5.0";
8 sha256 = "01ykxgnbm53wijdrbld10664xy2wkvyzbbs98mfnqnf4h1y064n0";
9
10 description = "mdev-compatible Linux hotplug manager daemon";
11 platforms = lib.platforms.linux;
12
13 outputs = [ "bin" "out" "dev" "doc" ];
14
15 configureFlags = [
16 "--with-sysdeps=${skalibs.lib}/lib/skalibs/sysdeps"
17 "--with-include=${skalibs.dev}/include"
18 "--with-lib=${skalibs.lib}/lib"
19 ];
20
21 postInstall = ''
22 # remove all mdevd executables from build directory
23 rm $(find -type f -mindepth 1 -maxdepth 1 -executable)
24
25 mv doc $doc/share/doc/mdevd/html
26 mv examples $doc/share/doc/mdevd/examples
27 '';
28}