Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 skawarePackages, 4 skalibs, 5}: 6 7skawarePackages.buildPackage { 8 pname = "mdevd"; 9 version = "0.1.7.0"; 10 sha256 = "sha256-7JZu7DmHnzPHhTQzcwIcRPiHyDagj8rx1jQS472/yjI="; 11 12 description = "mdev-compatible Linux hotplug manager daemon"; 13 platforms = lib.platforms.linux; 14 15 outputs = [ 16 "bin" 17 "out" 18 "dev" 19 "doc" 20 ]; 21 22 configureFlags = [ 23 "--with-sysdeps=${skalibs.lib}/lib/skalibs/sysdeps" 24 "--with-include=${skalibs.dev}/include" 25 "--with-lib=${skalibs.lib}/lib" 26 ]; 27 28 postInstall = '' 29 # remove all mdevd executables from build directory 30 rm $(find -type f -mindepth 1 -maxdepth 1 -executable) 31 rm libmdevd.* 32 33 mv doc $doc/share/doc/mdevd/html 34 mv examples $doc/share/doc/mdevd/examples 35 ''; 36}