Desktop: Add nix package to flake (#3258)

* update cargo-gpu, remove legacy-target-specs to fix nix builds

* add nix package to flake

* update cargo hash

* fix merge

---------

Co-authored-by: firestar99 <firestar99@sydow.cloud>
This commit is contained in:
Timon
2025-10-15 11:01:20 +00:00
committed by GitHub
co-authored by firestar99
parent 3509f0b035
commit 8d3a8c2c11
4 changed files with 155 additions and 91 deletions
+26
View File
@@ -0,0 +1,26 @@
{ pkgs }:
let
libcef = pkgs.libcef.overrideAttrs (_: _: {
postInstall = ''
strip $out/lib/*
'';
});
cefPath = pkgs.runCommand "cef-path" {} ''
mkdir -p $out
ln -s ${libcef}/include $out/include
find ${libcef}/lib -type f -name "*" -exec ln -s {} $out/ \;
find ${libcef}/libexec -type f -name "*" -exec ln -s {} $out/ \;
cp -r ${libcef}/share/cef/* $out/
echo '${builtins.toJSON {
type = "minimal";
name = builtins.baseNameOf libcef.src.url;
sha1 = "";
}}' > $out/archive.json
'';
in
{
CEF_PATH = cefPath;
}