26 lines
565 B
Nix
26 lines
565 B
Nix
{ pkgs, inputs, ... }:
|
|
|
|
let
|
|
cefPath = pkgs.cef-binary.overrideAttrs (finalAttrs: {
|
|
postInstall = ''
|
|
rm -r $out/* $out/.* || true
|
|
strip ./Release/*.so*
|
|
mv ./Release/* $out/
|
|
find "./Resources/locales" -maxdepth 1 -type f ! -name 'en-US.pak' -delete
|
|
mv ./Resources/* $out/
|
|
mv ./include $out/
|
|
|
|
echo '${
|
|
builtins.toJSON {
|
|
type = "minimal";
|
|
name = builtins.baseNameOf finalAttrs.src.url;
|
|
sha1 = "";
|
|
}
|
|
}' > $out/archive.json
|
|
'';
|
|
});
|
|
in
|
|
{
|
|
env.CEF_PATH = cefPath;
|
|
}
|