mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-12-02 00:01:59 -10:00
Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
90d953f199 | ||
|
|
adba81a906 | ||
|
|
c9cec90437 | ||
|
|
a47695090d | ||
|
|
47845ec5a6 |
No files matched your search
+14
-17
@@ -1,30 +1,27 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "149.0.5+g6770623+chromium-149.0.7827.197";
|
version = "149.7827.0";
|
||||||
hashes = {
|
upstream = "149.0.5+g6770623+chromium-149.0.7827.197";
|
||||||
aarch64-linux = "sha256-cBAvcvs1rAg5EKJkCt81RZYupCWpUNIC/nLt3PJow7Q=";
|
|
||||||
x86_64-linux = "sha256-OPGMBJmvvLiLdBDniBQwx7LmTGGI59AcesJdILSeqcs=";
|
|
||||||
};
|
|
||||||
|
|
||||||
selectSystem =
|
selectSystem =
|
||||||
attrs:
|
attrs:
|
||||||
attrs.${pkgs.stdenv.hostPlatform.system}
|
attrs.${pkgs.stdenv.hostPlatform.system}
|
||||||
or (throw "Unsupported system ${pkgs.stdenv.hostPlatform.system}");
|
or (throw "Unsupported system ${pkgs.stdenv.hostPlatform.system}");
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
src = selectSystem {
|
||||||
url = "https://cef-builds.spotifycdn.com/cef_binary_${version}_${
|
x86_64-linux = pkgs.fetchurl {
|
||||||
selectSystem {
|
url = "https://github.com/timon-schelling/graphite-cef/releases/download/v${version}/graphite_cef_x86-64_linux.tar.xz";
|
||||||
aarch64-linux = "linuxarm64";
|
hash = "sha256-CtvS/+NUh5ilnunt4AsWaZfWPiCsdEtz6+TLADT1Gqk=";
|
||||||
x86_64-linux = "linux64";
|
};
|
||||||
}
|
aarch64-linux = pkgs.fetchurl {
|
||||||
}_minimal.tar.bz2";
|
url = "https://cef-builds.spotifycdn.com/cef_binary_${upstream}_linuxarm64_minimal.tar.bz2";
|
||||||
hash = selectSystem hashes;
|
hash = "sha256-cBAvcvs1rAg5EKJkCt81RZYupCWpUNIC/nLt3PJow7Q=";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
pkgs.cef-binary.overrideAttrs (finalAttrs: {
|
pkgs.cef-binary.overrideAttrs (_: {
|
||||||
version = builtins.head (builtins.split "\\+" version);
|
inherit src version;
|
||||||
inherit src;
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
rm -r $out/* $out/.* || true
|
rm -r $out/* $out/.* || true
|
||||||
strip ./Release/*.so*
|
strip ./Release/*.so*
|
||||||
@@ -38,7 +35,7 @@ pkgs.cef-binary.overrideAttrs (finalAttrs: {
|
|||||||
echo '${
|
echo '${
|
||||||
builtins.toJSON {
|
builtins.toJSON {
|
||||||
type = "minimal";
|
type = "minimal";
|
||||||
name = builtins.baseNameOf finalAttrs.src.url;
|
name = "cef_binary_${upstream}";
|
||||||
sha1 = "";
|
sha1 = "";
|
||||||
}
|
}
|
||||||
}' > $out/archive.json
|
}' > $out/archive.json
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ impl ContextBuilder {
|
|||||||
let mut adapters = enumerate_sorted(&instance, self.backends).await;
|
let mut adapters = enumerate_sorted(&instance, self.backends).await;
|
||||||
|
|
||||||
if let Some(index) = self.selection
|
if let Some(index) = self.selection
|
||||||
&& index >= adapters.len()
|
&& index < adapters.len()
|
||||||
{
|
{
|
||||||
let selected_adapter = adapters.remove(index);
|
let selected_adapter = adapters.remove(index);
|
||||||
adapters.insert(0, selected_adapter);
|
adapters.insert(0, selected_adapter);
|
||||||
|
|||||||
Reference in new issue
Block a user