Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 18 lines 391 B view raw
1{ lib 2, makeSetupHook 3, which 4, callPackage 5}: 6 7makeSetupHook { 8 name = "patch-ppd-files"; 9 substitutions = { 10 which = lib.getBin which; 11 awkscript = ./patch-ppd-lines.awk; 12 }; 13 passthru.tests.test = callPackage ./test.nix {}; 14 meta = { 15 description = "setup hook to patch executable paths in ppd files"; 16 maintainers = [ lib.maintainers.yarny ]; 17 }; 18} ./patch-ppd-hook.sh