Desktop: Bundle for Linux with Nix (#3569)

bundle for linux with nix
This commit is contained in:
Timon
2026-01-06 00:32:55 +00:00
committed by GitHub
parent c2a29470c3
commit cf85ec736f
13 changed files with 225 additions and 122 deletions
+10 -8
View File
@@ -1,24 +1,26 @@
{ pkgs, inputs, ... }:
let
cef = pkgs.cef-binary.overrideAttrs (_: _: {
cef = pkgs.cef-binary.overrideAttrs {
postInstall = ''
strip $out/Release/*.so*
'';
});
};
cefPath = pkgs.runCommand "cef-path" {} ''
cefPath = pkgs.runCommand "cef-path" { } ''
mkdir -p $out
ln -s ${cef}/include $out/include
find ${cef}/Release -name "*" -type f -exec ln -s {} $out/ \;
find ${cef}/Resources -name "*" -maxdepth 1 -exec ln -s {} $out/ \;
echo '${builtins.toJSON {
type = "minimal";
name = builtins.baseNameOf cef.src.url;
sha1 = "";
}}' > $out/archive.json
echo '${
builtins.toJSON {
type = "minimal";
name = builtins.baseNameOf cef.src.url;
sha1 = "";
}
}' > $out/archive.json
'';
in
{