@@ -7,13 +7,19 @@ mkChromiumDerivation (base: rec {
77 packageName = "chromium";
88 buildTargets = [ "mksnapshot" "chrome_sandbox" "chrome" ];
99
10+ outputs = ["out" "sandbox"];
11+
12+ sandboxExecutableName = "__chromium-suid-sandbox";
13+
1014 installPhase = ''
1115 mkdir -p "$libExecPath"
1216 cp -v "$buildPath/"*.pak "$buildPath/"*.bin "$libExecPath/"
1317 cp -v "$buildPath/icudtl.dat" "$libExecPath/"
1418 cp -vLR "$buildPath/locales" "$buildPath/resources" "$libExecPath/"
1519 cp -v "$buildPath/chrome" "$libExecPath/$packageName"
16− cp -v "$buildPath/chrome_sandbox" "$libExecPath/chrome-sandbox"
20+
21+ mkdir -p "$sandbox/bin"
22+ cp -v "$buildPath/chrome_sandbox" "$sandbox/bin/${sandboxExecutableName}"
1723
1824 mkdir -vp "$out/share/man/man1"
1925 cp -v "$buildPath/chrome.1" "$out/share/man/man1/$packageName.1"
@@ -29,6 +35,8 @@ mkChromiumDerivation (base: rec {
2935 done
3036 '';
3137
38+ passthru = { inherit sandboxExecutableName; };
39+
3240 meta = {
3341 description = "An open source web browser from Google";
3442 homepage = http://www.chromium.org/;