mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-28 10:50:15 +00:00
Merge pull request #239165 from NixOS/backport-239024-to-release-23.05
[Backport release-23.05] knot-resolver: respect doInstallCheck even in wrapper
This commit is contained in:
@@ -116,7 +116,7 @@ wrapped-full = runCommand unwrapped.name
|
||||
allowSubstitutes = false;
|
||||
inherit (unwrapped) meta;
|
||||
}
|
||||
''
|
||||
(''
|
||||
mkdir -p "$out"/bin
|
||||
makeWrapper '${unwrapped}/bin/kresd' "$out"/bin/kresd \
|
||||
--set LUA_PATH "$LUA_PATH" \
|
||||
@@ -125,10 +125,10 @@ wrapped-full = runCommand unwrapped.name
|
||||
ln -sr '${unwrapped}/share' "$out"/
|
||||
ln -sr '${unwrapped}/lib' "$out"/ # useful in NixOS service
|
||||
ln -sr "$out"/{bin,sbin}
|
||||
|
||||
'' + lib.optionalString unwrapped.doInstallCheck ''
|
||||
echo "Checking that 'http' module loads, i.e. lua search paths work:"
|
||||
echo "modules.load('http')" > test-http.lua
|
||||
echo -e 'quit()' | env -i "$out"/bin/kresd -a 127.0.0.1#53535 -c test-http.lua
|
||||
'';
|
||||
'');
|
||||
|
||||
in result
|
||||
|
||||
Reference in New Issue
Block a user