Compare commits
43 Commits
8660752e1b
...
bump-heliu
| Author | SHA1 | Date | |
|---|---|---|---|
| e2ea0e7dfa | |||
| 636b729964 | |||
| f77541c4bf | |||
| 34dbec903f | |||
| e8a67e136d | |||
| b6dde58eca | |||
| 981ad4307b | |||
| 6443c3859f | |||
| f8aff912c1 | |||
| 8912f0bacd | |||
| 0a196c5012 | |||
| ddf51d782e | |||
| da12d408e9 | |||
| d8dc8d84a5 | |||
| ff4dd1a4eb | |||
| 51038c5b6c | |||
| 8f02cf55b2 | |||
| 77fac19667 | |||
| 21673b7396 | |||
| 27a4764e00 | |||
| b26187ae7d | |||
| 539624da38 | |||
| e5a7804eae | |||
| 18e2916e54 | |||
| baa4fcd4c2 | |||
| 63dd4c75bc | |||
| 76536821fb | |||
| af6bedc09d | |||
| 964aa04878 | |||
| 4da830c97e | |||
| 84f446e82c | |||
| 582deb42ab | |||
| 18d0646948 | |||
| d6a9713620 | |||
| ba2f6e9404 | |||
| 19dc5d7b4f | |||
| 6a0bbb90d2 | |||
| b8c8735d42 | |||
| 1ef47a00bd | |||
| e7d58bb03a | |||
| 8e2ef04cce | |||
| 6436a82d58 | |||
| 9473348b57 |
10
.gitea/workflows/build.yaml
Normal file
10
.gitea/workflows/build.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
name: cache
|
||||
on:
|
||||
push:
|
||||
jobs:
|
||||
build:
|
||||
runs-on: nix
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: attic login pkgs https://attic.scug.io ${{ secrets.ATTIC_TOKEN }}
|
||||
- run: nix-fast-build --skip-cached --systems "x86_64-linux aarch64-linux" --no-nom --attic-cache pkgs
|
||||
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
/result
|
||||
**/result
|
||||
result
|
||||
8
flake.lock
generated
8
flake.lock
generated
@@ -20,16 +20,16 @@
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1753694789,
|
||||
"narHash": "sha256-cKgvtz6fKuK1Xr5LQW/zOUiAC0oSQoA9nOISB0pJZqM=",
|
||||
"lastModified": 1764897201,
|
||||
"narHash": "sha256-428X4sppU6k+tF2vxTy726E5BxbtoxoTRP+1FBbXqvM=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "dc9637876d0dcc8c9e5e22986b857632effeb727",
|
||||
"rev": "9cfae7bb77c5058a4cfa8006d0caf82af8e980dc",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-unstable",
|
||||
"ref": "nixos-unstable-small",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
|
||||
56
flake.nix
56
flake.nix
@@ -2,7 +2,7 @@
|
||||
description = "Scuggo Pkgs";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
|
||||
@@ -11,14 +11,9 @@
|
||||
self,
|
||||
nixpkgs,
|
||||
flake-utils,
|
||||
}:
|
||||
|
||||
{
|
||||
overlays.default =
|
||||
final: prev: (import "${nixpkgs}/pkgs/top-level/by-name-overlay.nix" ./pkgs/by-name) final prev;
|
||||
}
|
||||
//
|
||||
flake-utils.lib.eachSystem
|
||||
}@inputs:
|
||||
(nixpkgs.lib.recursiveUpdate
|
||||
(flake-utils.lib.eachSystem
|
||||
[
|
||||
"x86_64-linux"
|
||||
"aarch64-linux"
|
||||
@@ -36,8 +31,11 @@
|
||||
let
|
||||
isDrv = lib.isDerivation pkg;
|
||||
isAttrs = lib.isAttrs pkg;
|
||||
isSameSystem = lib.meta.availableOn pkgs.stdenv.hostPlatform pkg;
|
||||
in
|
||||
if isDrv then
|
||||
if !isSameSystem then
|
||||
[ ]
|
||||
else if isDrv then
|
||||
[
|
||||
(lib.nameValuePair name pkg)
|
||||
]
|
||||
@@ -48,15 +46,39 @@
|
||||
flatPackages = builtins.listToAttrs (
|
||||
lib.lists.flatten (lib.mapAttrsToList (name: pkg: recursePackage name pkg) scope)
|
||||
);
|
||||
workingPackages = lib.filterAttrs (_: pkg: !pkg.meta.broken) self.packages.${system};
|
||||
workingPackages = lib.filterAttrs (_: pkg: !pkg.meta.broken) flatPackages;
|
||||
# Disable for now
|
||||
# recursePackageSets =
|
||||
# pkg:
|
||||
# let
|
||||
# isDrv = lib.isDerivation pkg;
|
||||
# isAttrs = lib.isAttrs pkg;
|
||||
# isSameSystem = lib.meta.availableOn pkgs.stdenv.hostPlatform pkg;
|
||||
# in
|
||||
# if isDrv && isSameSystem then
|
||||
# pkg
|
||||
# else if isAttrs then
|
||||
# lib.mapAttrs (_: subPkg: recursePackageSets subPkg) pkg
|
||||
# else
|
||||
# null;
|
||||
#
|
||||
# # Recursively filter out nulls and remove overrides (probably a btter way to do this but it works for now)
|
||||
# packageSets = lib.filterAttrsRecursive (k: v: v != null && k != "override") (
|
||||
# lib.mapAttrs (name: pkg: recursePackageSets pkg) scope
|
||||
# );
|
||||
in
|
||||
{
|
||||
inherit flatPackages;
|
||||
inherit pkgs;
|
||||
packages = lib.filterAttrs (
|
||||
_: pkg: lib.isDerivation pkg && (lib.meta.availableOn pkgs.stdenv.hostPlatform pkg)
|
||||
) scope;
|
||||
overlays.default = final: prev: flatPackages;
|
||||
packages = flatPackages;
|
||||
checks = lib.mapAttrs' (n: lib.nameValuePair "package-${n}") workingPackages;
|
||||
}
|
||||
);
|
||||
)
|
||||
)
|
||||
{
|
||||
overlays = {
|
||||
default =
|
||||
final: prev: ((import "${nixpkgs}/pkgs/top-level/by-name-overlay.nix" ./pkgs/by-name) final prev);
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
4
pkgs/by-name/ar/aria2-fast/package.nix
Normal file
4
pkgs/by-name/ar/aria2-fast/package.nix
Normal file
@@ -0,0 +1,4 @@
|
||||
{ aria2 }:
|
||||
aria2.overrideAttrs (oldAttrs: rec {
|
||||
patches = oldAttrs.patches or [ ] ++ [ ./unlimited.patch ];
|
||||
})
|
||||
11
pkgs/by-name/ar/aria2-fast/unlimited.patch
Normal file
11
pkgs/by-name/ar/aria2-fast/unlimited.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- a/src/OptionHandlerFactory.cc
|
||||
+++ b/src/OptionHandlerFactory.cc
|
||||
@@ -440,7 +440,7 @@ std::vector<OptionHandler*> OptionHandlerFactory::createOptionHandlers()
|
||||
{
|
||||
OptionHandler* op(new NumberOptionHandler(PREF_MAX_CONNECTION_PER_SERVER,
|
||||
TEXT_MAX_CONNECTION_PER_SERVER,
|
||||
- "1", 1, 16, 'x'));
|
||||
+ "1", 1, -1, 'x'));
|
||||
op->addTag(TAG_BASIC);
|
||||
op->addTag(TAG_FTP);
|
||||
op->addTag(TAG_HTTP);
|
||||
@@ -13,10 +13,6 @@ let
|
||||
hash = "sha256-iE4lqyr3zmLcgFnsrDvQ/CKUV15ijqmIbUIs9sgMECg=";
|
||||
};
|
||||
in
|
||||
lib.packagesFromDirectoryRecursive {
|
||||
inherit callPackage newScope;
|
||||
directory = ./tools;
|
||||
}
|
||||
# lib.makeScope newScope (self: {
|
||||
# ath12k-tools = self.callPackage ./ath12k-tools.nix { inherit src; };
|
||||
# })
|
||||
lib.makeScope newScope (self: {
|
||||
ath12k-tools = self.callPackage ./ath12k-tools.nix { inherit src; };
|
||||
})
|
||||
|
||||
32
pkgs/by-name/ba/base24-schemes/package.nix
Normal file
32
pkgs/by-name/ba/base24-schemes/package.nix
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
...
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "base24-schemes";
|
||||
version = "unstable-2025-04-18";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tinted-theming";
|
||||
repo = "schemes";
|
||||
rev = "28c26a621123ad4ebd5bbfb34ab39421c0144bdd";
|
||||
hash = "sha256-Fg+rdGs5FAgfkYNCs74lnl8vkQmiZVdBsziyPhVqrlY=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/themes/
|
||||
install base24/*.yaml $out/share/themes/
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "All the color schemes for use in base24 packages";
|
||||
homepage = finalAttrs.src.meta.homepage;
|
||||
license = licenses.mit;
|
||||
};
|
||||
})
|
||||
5
pkgs/by-name/cl/claude-code-acp/info.json
Normal file
5
pkgs/by-name/cl/claude-code-acp/info.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"version": "0.6.7",
|
||||
"srcHash": "sha256-v32Q02ALWw6Upd4rrHGZH7Vt25+xSnKJCNGJob/irgM=",
|
||||
"npmDepsHash": "sha256-oUAHkB4EPuo8YCxi9Y/Lc8cipjJQ05o51MpdUsCjiiQ="
|
||||
}
|
||||
36
pkgs/by-name/cl/claude-code-acp/package.nix
Normal file
36
pkgs/by-name/cl/claude-code-acp/package.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
lib,
|
||||
buildNpmPackage,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
let
|
||||
info = lib.importJSON ./info.json;
|
||||
in
|
||||
buildNpmPackage {
|
||||
pname = "claude-code-acp";
|
||||
version = info.version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "zed-industries";
|
||||
repo = "claude-code-acp";
|
||||
rev = "v${info.version}";
|
||||
hash = info.srcHash;
|
||||
};
|
||||
|
||||
npmDepsHash = info.npmDepsHash;
|
||||
|
||||
# The package uses TypeScript and builds before publishing
|
||||
npmBuildScript = "build";
|
||||
|
||||
passthru = {
|
||||
updateScript = ./update.mjs;
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Use Claude Code from any ACP client such as Zed";
|
||||
homepage = "https://github.com/zed-industries/claude-code-acp";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ ];
|
||||
mainProgram = "claude-code-acp";
|
||||
};
|
||||
}
|
||||
77
pkgs/by-name/cl/claude-code-acp/update.mjs
Executable file
77
pkgs/by-name/cl/claude-code-acp/update.mjs
Executable file
@@ -0,0 +1,77 @@
|
||||
#! /usr/bin/env nix-shell
|
||||
/*
|
||||
#! nix-shell -i zx -p nix-prefetch-github -p zx
|
||||
*/
|
||||
|
||||
import { readFileSync, writeFileSync } from "fs";
|
||||
import { dirname, join } from "path";
|
||||
import { fileURLToPath } from "url";
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
|
||||
// GitHub API endpoint for latest release
|
||||
const GITHUB_API = "https://api.github.com/repos/zed-industries/claude-code-acp/releases/latest";
|
||||
|
||||
// Read current info.json
|
||||
const infoPath = join(__dirname, "info.json");
|
||||
const currentInfo = JSON.parse(readFileSync(infoPath, "utf-8"));
|
||||
|
||||
console.log(`Current version: ${currentInfo.version}`);
|
||||
|
||||
// Fetch latest release from GitHub
|
||||
console.log("Fetching latest release from GitHub...");
|
||||
const response = await fetch(GITHUB_API);
|
||||
const release = await response.json();
|
||||
|
||||
const latestVersion = release.tag_name.replace(/^v/, ""); // Remove 'v' prefix
|
||||
console.log(`Latest version: ${latestVersion}`);
|
||||
|
||||
if (currentInfo.version === latestVersion) {
|
||||
console.log("Already up to date!");
|
||||
process.exit(0);
|
||||
}
|
||||
|
||||
// Update version
|
||||
currentInfo.version = latestVersion;
|
||||
|
||||
// Prefetch source hash
|
||||
console.log("Prefetching source hash...");
|
||||
const srcHashOutput = await $`nix-prefetch-github zed-industries claude-code-acp --rev v${latestVersion}`;
|
||||
const srcPrefetch = JSON.parse(srcHashOutput.stdout);
|
||||
currentInfo.srcHash = srcPrefetch.hash;
|
||||
|
||||
console.log(`Source hash: ${currentInfo.srcHash}`);
|
||||
|
||||
// Write temporary info.json to get npmDepsHash
|
||||
writeFileSync(infoPath, JSON.stringify(currentInfo, null, 2) + "\n");
|
||||
|
||||
// Prefetch npm dependencies hash
|
||||
console.log("Prefetching npm dependencies hash...");
|
||||
try {
|
||||
// This will fail with the expected hash in the error message
|
||||
await $`nix build .#claude-code-acp`;
|
||||
|
||||
} catch (error) {
|
||||
// Extract hash from error message
|
||||
const errorOutput = error.stderr;
|
||||
const hashMatch = errorOutput.match(/got:\s+(sha256-[A-Za-z0-9+/=]+)/);
|
||||
|
||||
if (hashMatch) {
|
||||
currentInfo.npmDepsHash = hashMatch[1];
|
||||
console.log(`npm deps hash: ${currentInfo.npmDepsHash}`);
|
||||
} else {
|
||||
console.error("Failed to extract npmDepsHash from build output");
|
||||
console.error("You may need to update it manually by running:");
|
||||
console.error(` nix-build -A claude-code-acp`);
|
||||
console.error("and copying the hash from the error message");
|
||||
}
|
||||
}
|
||||
|
||||
// Write final info.json
|
||||
writeFileSync(infoPath, JSON.stringify(currentInfo, null, 2) + "\n");
|
||||
|
||||
console.log("\nUpdate complete!");
|
||||
console.log(`Version: ${currentInfo.version}`);
|
||||
console.log(`Source hash: ${currentInfo.srcHash}`);
|
||||
console.log(`npm deps hash: ${currentInfo.npmDepsHash}`);
|
||||
6281
pkgs/by-name/fl/flightcore/cargo-lock.patch
Normal file
6281
pkgs/by-name/fl/flightcore/cargo-lock.patch
Normal file
File diff suppressed because it is too large
Load Diff
73
pkgs/by-name/fl/flightcore/package.nix
Normal file
73
pkgs/by-name/fl/flightcore/package.nix
Normal file
@@ -0,0 +1,73 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
rustPlatform,
|
||||
jq,
|
||||
moreutils,
|
||||
fetchNpmDeps,
|
||||
cargo-tauri,
|
||||
glib-networking,
|
||||
nodejs,
|
||||
npmHooks,
|
||||
openssl,
|
||||
pkg-config,
|
||||
webkitgtk_4_1,
|
||||
wrapGAppsHook4,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "flightcore";
|
||||
version = "3.2.0";
|
||||
src = fetchFromGitHub {
|
||||
owner = "R2NorthstarTools";
|
||||
repo = "FlightCore";
|
||||
rev = "v${finalAttrs.version}";
|
||||
sha256 = "sha256-MFnW9cXFzqmdtC31r8cRcihV3NjGAC6+2/DnNVMheCI=";
|
||||
};
|
||||
patches = [ ./cargo-lock.patch ];
|
||||
cargoDeps = rustPlatform.fetchCargoVendor {
|
||||
src = finalAttrs.src;
|
||||
sourceRoot = "${finalAttrs.src.name}/${finalAttrs.cargoRoot}";
|
||||
hash = "sha256-Jh0DAX4fGy2Z1+hpq+bkU/VYy2JAL2u+neUIsQ2QXBU=";
|
||||
patchFlags = "-p2";
|
||||
inherit (finalAttrs) patches;
|
||||
};
|
||||
postPatch = ''
|
||||
jq '.bundle.createUpdaterArtifacts = false' src-tauri/tauri.conf.json | sponge src-tauri/tauri.conf.json
|
||||
'';
|
||||
npmDeps = fetchNpmDeps {
|
||||
name = "${finalAttrs.pname}-${finalAttrs.version}-npm-deps";
|
||||
src = "${finalAttrs.src}/src-vue";
|
||||
hash = "sha256-QhUPkCBK1kcAF7gByFxlg8Ca9PLF3evCl0QYEPP/Q2c=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cargo-tauri.hook
|
||||
|
||||
nodejs
|
||||
npmHooks.npmConfigHook
|
||||
|
||||
pkg-config
|
||||
|
||||
jq
|
||||
moreutils
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isLinux [ wrapGAppsHook4 ];
|
||||
|
||||
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
|
||||
glib-networking
|
||||
openssl
|
||||
webkitgtk_4_1
|
||||
];
|
||||
|
||||
cargoRoot = "src-tauri";
|
||||
npmRoot = "src-vue";
|
||||
|
||||
buildAndTestSubdir = finalAttrs.cargoRoot;
|
||||
|
||||
meta = {
|
||||
platforms = [ "x86_64-linux" ];
|
||||
description = "FlightCore A Northstar installer, updater, and mod-manager";
|
||||
};
|
||||
})
|
||||
122
pkgs/by-name/he/helium-browser/depot_tools.py
Executable file
122
pkgs/by-name/he/helium-browser/depot_tools.py
Executable file
@@ -0,0 +1,122 @@
|
||||
#! /usr/bin/env nix-shell
|
||||
#! nix-shell -i python -p python3
|
||||
"""
|
||||
This is a heavily simplified variant of electron's update.py
|
||||
for use in ./update.mjs and should not be called manually.
|
||||
|
||||
It resolves chromium's DEPS file recursively when called with
|
||||
a working depot_tools checkout and a ref to fetch and prints
|
||||
the result as JSON to stdout.
|
||||
"""
|
||||
import base64
|
||||
import json
|
||||
from typing import Optional
|
||||
from urllib.request import urlopen
|
||||
|
||||
import sys
|
||||
|
||||
if len(sys.argv) != 3:
|
||||
print("""This internal script has been called with the wrong amount of parameters.
|
||||
This script is not supposed to be called manually.
|
||||
Refer to ./update.mjs instead.""")
|
||||
exit(1)
|
||||
|
||||
_, depot_tools_checkout, chromium_version = sys.argv
|
||||
|
||||
sys.path.append(depot_tools_checkout)
|
||||
import gclient_eval
|
||||
import gclient_utils
|
||||
|
||||
|
||||
class Repo:
|
||||
fetcher: str
|
||||
args: dict
|
||||
|
||||
def __init__(self) -> None:
|
||||
self.deps: dict = {}
|
||||
self.hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="
|
||||
|
||||
def get_deps(self, repo_vars: dict, path: str) -> None:
|
||||
print(
|
||||
"evaluating " + json.dumps(self, default=vars, sort_keys=True),
|
||||
file=sys.stderr,
|
||||
)
|
||||
|
||||
deps_file = self.get_file("DEPS")
|
||||
evaluated = gclient_eval.Parse(deps_file, vars_override=repo_vars, filename="DEPS")
|
||||
|
||||
repo_vars = dict(evaluated.get("vars", {})) | repo_vars
|
||||
|
||||
prefix = f"{path}/" if evaluated.get("use_relative_paths", False) else ""
|
||||
|
||||
self.deps = {
|
||||
prefix + dep_name: repo_from_dep(dep)
|
||||
for dep_name, dep in evaluated.get("deps", {}).items()
|
||||
if (
|
||||
gclient_eval.EvaluateCondition(dep["condition"], repo_vars)
|
||||
if "condition" in dep
|
||||
else True
|
||||
)
|
||||
and repo_from_dep(dep) != None
|
||||
}
|
||||
|
||||
for key in evaluated.get("recursedeps", []):
|
||||
dep_path = prefix + key
|
||||
if dep_path in self.deps and dep_path != "src/third_party/squirrel.mac":
|
||||
self.deps[dep_path].get_deps(repo_vars, dep_path)
|
||||
|
||||
def flatten_repr(self) -> dict:
|
||||
return {"fetcher": self.fetcher, "hash": self.hash, **self.args}
|
||||
|
||||
def flatten(self, path: str) -> dict:
|
||||
out = {path: self.flatten_repr()}
|
||||
for dep_path, dep in self.deps.items():
|
||||
out |= dep.flatten(dep_path)
|
||||
return out
|
||||
|
||||
def get_file(self, filepath: str) -> str:
|
||||
raise NotImplementedError
|
||||
|
||||
|
||||
class GitilesRepo(Repo):
|
||||
def __init__(self, url: str, rev: str) -> None:
|
||||
super().__init__()
|
||||
self.fetcher = "fetchFromGitiles"
|
||||
self.args = {
|
||||
"url": url,
|
||||
"rev": rev,
|
||||
}
|
||||
|
||||
def get_file(self, filepath: str) -> str:
|
||||
return base64.b64decode(
|
||||
urlopen(
|
||||
f"{self.args['url']}/+/{self.args['rev']}/{filepath}?format=TEXT"
|
||||
).read()
|
||||
).decode("utf-8")
|
||||
|
||||
|
||||
def repo_from_dep(dep: dict) -> Optional[Repo]:
|
||||
if "url" in dep:
|
||||
url, rev = gclient_utils.SplitUrlRevision(dep["url"])
|
||||
return GitilesRepo(url, rev)
|
||||
else:
|
||||
# Not a git dependency; skip
|
||||
return None
|
||||
|
||||
|
||||
|
||||
chromium = GitilesRepo("https://chromium.googlesource.com/chromium/src.git", chromium_version)
|
||||
chromium.get_deps(
|
||||
{
|
||||
**{
|
||||
f"checkout_{platform}": platform == "linux" or platform == "x64" or platform == "arm64" or platform == "arm"
|
||||
for platform in ["ios", "chromeos", "android", "mac", "win", "linux"]
|
||||
},
|
||||
**{
|
||||
f"checkout_{arch}": True
|
||||
for arch in ["x64", "arm64", "arm", "x86", "mips", "mips64", "ppc", "riscv64"]
|
||||
},
|
||||
},
|
||||
"",
|
||||
)
|
||||
print(json.dumps(chromium.flatten("src")))
|
||||
18
pkgs/by-name/he/helium-browser/fix-scripts.patch
Normal file
18
pkgs/by-name/he/helium-browser/fix-scripts.patch
Normal file
@@ -0,0 +1,18 @@
|
||||
diff --git a/utils/generate_resources.py b/utils/generate_resources.py
|
||||
index f14d3c03..9fcc1df3 100644
|
||||
--- a/utils/generate_resources.py
|
||||
+++ b/utils/generate_resources.py
|
||||
@@ -1,3 +1,4 @@
|
||||
+#!/usr/bin/env python3
|
||||
# Copyright 2025 The Helium Authors
|
||||
# You can use, redistribute, and/or modify this source code under
|
||||
# the terms of the GPL-3.0 license that can be found in the LICENSE file.
|
||||
diff --git a/utils/replace_resources.py b/utils/replace_resources.py
|
||||
index 935ab525..d30bfa8f 100644
|
||||
--- a/utils/replace_resources.py
|
||||
+++ b/utils/replace_resources.py
|
||||
@@ -1,3 +1,4 @@
|
||||
+#!/usr/bin/env python3
|
||||
# Copyright 2025 The Helium Authors
|
||||
# You can use, redistribute, and/or modify this source code under
|
||||
# the terms of the GPL-3.0 license that can be found in the LICENSE file.
|
||||
57
pkgs/by-name/he/helium-browser/helium-patcher.nix
Normal file
57
pkgs/by-name/he/helium-browser/helium-patcher.nix
Normal file
@@ -0,0 +1,57 @@
|
||||
{
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
python3Packages,
|
||||
makeWrapper,
|
||||
patch,
|
||||
}:
|
||||
|
||||
{
|
||||
rev,
|
||||
hash,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "helium-patcher";
|
||||
|
||||
version = rev;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "imputnet";
|
||||
repo = "helium";
|
||||
inherit rev hash;
|
||||
};
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
# patches = [ ./fix-scripts.patch ];
|
||||
|
||||
buildInputs = [
|
||||
|
||||
(python3Packages.python.withPackages (
|
||||
pythonPackages: with pythonPackages; [
|
||||
pillow
|
||||
]
|
||||
))
|
||||
|
||||
patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
sed -i '/chromium-widevine/d' patches/series
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
cp -R * $out/
|
||||
wrapProgram $out/utils/patches.py --add-flags "apply" --prefix PATH : "${patch}/bin"
|
||||
chmod +x $out/utils/name_substitution.py
|
||||
chmod +x $out/utils/helium_version.py
|
||||
chmod +x $out/utils/generate_resources.py
|
||||
chmod +x $out/utils/replace_resources.py
|
||||
'';
|
||||
}
|
||||
814
pkgs/by-name/he/helium-browser/info.json
Normal file
814
pkgs/by-name/he/helium-browser/info.json
Normal file
@@ -0,0 +1,814 @@
|
||||
{
|
||||
"ungoogled-chromium": {
|
||||
"version": "143.0.7499.169",
|
||||
"deps": {
|
||||
"depot_tools": {
|
||||
"rev": "e2bb3cd55899346cc68bbfd5139e59c9d85a6984",
|
||||
"hash": "sha256-Qlc0UAdGRm1C0DNAqBsssND8PQZUVkj6aDaeExjwi2E="
|
||||
},
|
||||
"gn": {
|
||||
"version": "0-unstable-2025-10-08",
|
||||
"rev": "07d3c6f4dc290fae5ca6152ebcb37d6815c411ab",
|
||||
"hash": "sha256-kIPhfuJBQSISdRjloe0N2JrqvuVrEkNijb92/9zSE9I="
|
||||
},
|
||||
"ungoogled-patches": {
|
||||
"rev": "0.7.9",
|
||||
"hash": "sha256-WmCG1iG200En3Nt5U2E6KhXvZHv4gwwa7xtPTqpWOAI="
|
||||
},
|
||||
"npmHash": "sha256-HF6B4abJJJ9JDVbovtAdaHIvqE1zHJZ2a+g2Cudx8Pw="
|
||||
},
|
||||
"DEPS": {
|
||||
"src": {
|
||||
"url": "https://chromium.googlesource.com/chromium/src.git",
|
||||
"rev": "164b20aab62509dad21fd46383951aeec084ad1e",
|
||||
"hash": "sha256-WqpZXjcklOyPIvEmWi23bC8D/vVXMLkAmFrQQ13Iy6o=",
|
||||
"recompress": true
|
||||
},
|
||||
"src/third_party/clang-format/script": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/llvm/llvm-project/clang/tools/clang-format.git",
|
||||
"rev": "c2725e0622e1a86d55f14514f2177a39efea4a0e",
|
||||
"hash": "sha256-f+BbQ6xIubloSzx/MhPSZ8ymCskmS+9+epDGtPjZqXc="
|
||||
},
|
||||
"src/third_party/compiler-rt/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/llvm/llvm-project/compiler-rt.git",
|
||||
"rev": "08611c39bbfc52cc034904eb88817c6209b828f9",
|
||||
"hash": "sha256-AfVP7cm7eNGl0JPnMkixMFgloDTHh0KSOAwXDEcl5MU="
|
||||
},
|
||||
"src/third_party/libc++/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/llvm/llvm-project/libcxx.git",
|
||||
"rev": "8cd54f6b0741cdef08299711668e6b25fef26406",
|
||||
"hash": "sha256-AJx0Oz1sNubo2JNPjeXO5f9SnoXewOsPlgFrRXiCEKg="
|
||||
},
|
||||
"src/third_party/libc++abi/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/llvm/llvm-project/libcxxabi.git",
|
||||
"rev": "a02fa0058d8d52aca049868d229808a3e5dadbad",
|
||||
"hash": "sha256-iNV7NtVviRBDjt6mK/DK3WfYd/QNGejRaSvpgEXmLqY="
|
||||
},
|
||||
"src/third_party/libunwind/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/llvm/llvm-project/libunwind.git",
|
||||
"rev": "b7c3dda13e46ced88a6f7230e271ebd633b4cef2",
|
||||
"hash": "sha256-eWxGIMxMBRvQVJ6uc3ZWaKO7oXLLCXTi8sVR8v3H4MM="
|
||||
},
|
||||
"src/third_party/llvm-libc/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/llvm/llvm-project/libc.git",
|
||||
"rev": "796bfb264a22264b11acda9feaffdffb168c7e12",
|
||||
"hash": "sha256-J/FiUpmwkFVZcLmeXABl4FE9rzGFsbo/Lc1Rjy5wdOU="
|
||||
},
|
||||
"src/chrome/test/data/perf/canvas_bench": {
|
||||
"url": "https://chromium.googlesource.com/chromium/canvas_bench.git",
|
||||
"rev": "a7b40ea5ae0239517d78845a5fc9b12976bfc732",
|
||||
"hash": "sha256-svOuyBGKloBLM11xLlWCDsB4PpRjdKTBdW2UEW4JQjM="
|
||||
},
|
||||
"src/chrome/test/data/perf/frame_rate/content": {
|
||||
"url": "https://chromium.googlesource.com/chromium/frame_rate/content.git",
|
||||
"rev": "c10272c88463efeef6bb19c9ec07c42bc8fe22b9",
|
||||
"hash": "sha256-t4kcuvH0rkPBkcdiMsoNQaRwU09eU+oSvyHDiAHrKXo="
|
||||
},
|
||||
"src/chrome/test/data/xr/webvr_info": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/toji/webvr.info.git",
|
||||
"rev": "c58ae99b9ff9e2aa4c524633519570bf33536248",
|
||||
"hash": "sha256-BsAPwc4oEWri0TlqhyxqFNqKdfgVSrB0vQyISmYY4eg="
|
||||
},
|
||||
"src/docs/website": {
|
||||
"url": "https://chromium.googlesource.com/website.git",
|
||||
"rev": "2acb551cf58ff3b6e6a093fe36deb8c625046900",
|
||||
"hash": "sha256-HaNA1Es8t3A/WR9aXdEoFOdeNO6c6ydPDF1CCBb0Bu4="
|
||||
},
|
||||
"src/media/cdm/api": {
|
||||
"url": "https://chromium.googlesource.com/chromium/cdm.git",
|
||||
"rev": "a4cbc4325e6de42ead733f2af43c08292d0e65a8",
|
||||
"hash": "sha256-voZaq/OiP5/QSSZmBx1ifriBc6HQ9+m4pUz0o9+O9x8="
|
||||
},
|
||||
"src/net/third_party/quiche/src": {
|
||||
"url": "https://quiche.googlesource.com/quiche.git",
|
||||
"rev": "42cbfedd76691c19af012a3d717fca07d7b09cc9",
|
||||
"hash": "sha256-ik5NjHWC8LHJiOde7Jdqq2C/NOofQwtPT4ubAqc8D4A="
|
||||
},
|
||||
"src/testing/libfuzzer/fuzzers/wasm_corpus": {
|
||||
"url": "https://chromium.googlesource.com/v8/fuzzer_wasm_corpus.git",
|
||||
"rev": "1df5e50a45db9518a56ebb42cb020a94a090258b",
|
||||
"hash": "sha256-gItDOfNqm1tHlmelz3l2GGdiKi9adu1EpPP6U7+8EQY="
|
||||
},
|
||||
"src/third_party/angle": {
|
||||
"url": "https://chromium.googlesource.com/angle/angle.git",
|
||||
"rev": "2dfb5b7603d09c1d06f9d7a894752431d98b9a3e",
|
||||
"hash": "sha256-3F2K3UO3BHC0mJGUgc/q5AuxwL32O98PloF1cwyZLqU="
|
||||
},
|
||||
"src/third_party/angle/third_party/glmark2/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/glmark2/glmark2",
|
||||
"rev": "6edcf02205fd1e8979dc3f3964257a81959b80c8",
|
||||
"hash": "sha256-VebUALLFKwEa4+oE+jF8mBSzhJd6aflphPmcK1Em8bw="
|
||||
},
|
||||
"src/third_party/angle/third_party/rapidjson/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/Tencent/rapidjson",
|
||||
"rev": "781a4e667d84aeedbeb8184b7b62425ea66ec59f",
|
||||
"hash": "sha256-btUl1a/B0sXwf/+hyvCvVJjWqIkXfVYCpHm3TeBuOxk="
|
||||
},
|
||||
"src/third_party/angle/third_party/VK-GL-CTS/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/KhronosGroup/VK-GL-CTS",
|
||||
"rev": "53f6cec6c0a81fc4e712cd3ec87a1a39b802f5d5",
|
||||
"hash": "sha256-KC9sHWRrPI5R10z5Epq3e7BW7+Ez0AoYe+bKPYL58jg="
|
||||
},
|
||||
"src/third_party/anonymous_tokens/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/google/anonymous-tokens.git",
|
||||
"rev": "50e04fb27eacd49a5e2bfde5977ac689e13ebeeb",
|
||||
"hash": "sha256-jwfszvnWRtTmzPm5x/lyceX1Y0G0hyIATcKlYkKj/SY="
|
||||
},
|
||||
"src/third_party/readability/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/mozilla/readability.git",
|
||||
"rev": "d7949dc47dd9ed9ee1d3b34ffdcf3bce28cde435",
|
||||
"hash": "sha256-lFsHXk4kEkzIbHgJiLTgeiKqiGOErzUwADo8WSZlnec="
|
||||
},
|
||||
"src/third_party/content_analysis_sdk/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/chromium/content_analysis_sdk.git",
|
||||
"rev": "9a408736204513e0e95dd2ab3c08de0d95963efc",
|
||||
"hash": "sha256-f5Jmk1MiGjaRdLun+v/GKVl8Yv9hOZMTQUSxgiJalcY="
|
||||
},
|
||||
"src/third_party/dav1d/libdav1d": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/videolan/dav1d.git",
|
||||
"rev": "fcbc3d1b93f91c709293ed9faea8b7cbcac9030b",
|
||||
"hash": "sha256-Lux+OGbeWnQJhIYDczH6jP/+lO+ZLlwpuUcLbO4Jvuo="
|
||||
},
|
||||
"src/third_party/dawn": {
|
||||
"url": "https://dawn.googlesource.com/dawn.git",
|
||||
"rev": "479f62d2194fd6e44c37d07654ca6e41c42bd332",
|
||||
"hash": "sha256-rzZn9l0EFcir6k8Xv2svIrhRPwe/rq48H7CX/3yfgFE="
|
||||
},
|
||||
"src/third_party/dawn/third_party/glfw": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/glfw/glfw",
|
||||
"rev": "b35641f4a3c62aa86a0b3c983d163bc0fe36026d",
|
||||
"hash": "sha256-E1zXIDiw87badrLOZTvV+Wh9NZHu51nb70ZK9vlAlqE="
|
||||
},
|
||||
"src/third_party/dawn/third_party/dxc": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/microsoft/DirectXShaderCompiler",
|
||||
"rev": "c522461221759f1785b3434ce52ae89d6b66855a",
|
||||
"hash": "sha256-UqgsxtEdvGs3fOueXJU6DJcESmgkEGAjdnMig78qKzE="
|
||||
},
|
||||
"src/third_party/dawn/third_party/dxheaders": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/microsoft/DirectX-Headers",
|
||||
"rev": "980971e835876dc0cde415e8f9bc646e64667bf7",
|
||||
"hash": "sha256-0Miw1Cy/jmOo7bLFBOHuTRDV04cSeyvUEyPkpVsX9DA="
|
||||
},
|
||||
"src/third_party/dawn/third_party/khronos/OpenGL-Registry": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/KhronosGroup/OpenGL-Registry",
|
||||
"rev": "5bae8738b23d06968e7c3a41308568120943ae77",
|
||||
"hash": "sha256-K3PcRIiD3AmnbiSm5TwaLs4Gu9hxaN8Y91WMKK8pOXE="
|
||||
},
|
||||
"src/third_party/dawn/third_party/khronos/EGL-Registry": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/KhronosGroup/EGL-Registry",
|
||||
"rev": "7dea2ed79187cd13f76183c4b9100159b9e3e071",
|
||||
"hash": "sha256-Z6DwLfgQ1wsJXz0KKJyVieOatnDmx3cs0qJ6IEgSq1A="
|
||||
},
|
||||
"src/third_party/dawn/third_party/webgpu-cts": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/gpuweb/cts",
|
||||
"rev": "95042527d1555325b90dbb745a29d32eb9fad14a",
|
||||
"hash": "sha256-Ofi/XfzyQrt2gUHaJpOyUUD7DXTWWmvXXJQP7C6AN8w="
|
||||
},
|
||||
"src/third_party/dawn/third_party/webgpu-headers/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/webgpu-native/webgpu-headers",
|
||||
"rev": "ca7071cd5dd8a67cb8ca4f8614fd006ff3d93bde",
|
||||
"hash": "sha256-ucRkEY1bZ3WyK55FW0pujl9LWFENmEzZvxO2QKYXmhc="
|
||||
},
|
||||
"src/third_party/highway/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/google/highway.git",
|
||||
"rev": "84379d1c73de9681b54fbe1c035a23c7bd5d272d",
|
||||
"hash": "sha256-HNrlqtAs1vKCoSJ5TASs34XhzjEbLW+ISco1NQON+BI="
|
||||
},
|
||||
"src/third_party/google_benchmark/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/google/benchmark.git",
|
||||
"rev": "761305ec3b33abf30e08d50eb829e19a802581cc",
|
||||
"hash": "sha256-cH8s1gP6kCcojAAfTt5iQCVqiAaSooNk4BdaILujM3w="
|
||||
},
|
||||
"src/third_party/libpfm4/src": {
|
||||
"url": "https://chromium.googlesource.com/external/git.code.sf.net/p/perfmon2/libpfm4.git",
|
||||
"rev": "964baf9d35d5f88d8422f96d8a82c672042e7064",
|
||||
"hash": "sha256-awpZ22rovLZWQkX/qog93vL4u2gJ+F3w5IGFNlZ0heQ="
|
||||
},
|
||||
"src/third_party/boringssl/src": {
|
||||
"url": "https://boringssl.googlesource.com/boringssl.git",
|
||||
"rev": "58da9b0d721fd807279f4e3898741c92cf43bdbd",
|
||||
"hash": "sha256-uvsW0p3wo7L1tQqelRk5QJ65Jt5cpv6ORZRorZjHqrw="
|
||||
},
|
||||
"src/third_party/breakpad/breakpad": {
|
||||
"url": "https://chromium.googlesource.com/breakpad/breakpad.git",
|
||||
"rev": "d0b41ca2a38c7b14c4b7853254eb5bf3b4039691",
|
||||
"hash": "sha256-CQ1doQRsX0zvfgYKJalz0i35mPJfk5o6m2sdGYqS4co="
|
||||
},
|
||||
"src/third_party/cast_core/public/src": {
|
||||
"url": "https://chromium.googlesource.com/cast_core/public",
|
||||
"rev": "f5ee589bdaea60418f670fa176be15ccb9a34942",
|
||||
"hash": "sha256-yQxm1GMMne80bLl1P7OAN3bJLz1qRNAvou2/5MKp2ig="
|
||||
},
|
||||
"src/third_party/catapult": {
|
||||
"url": "https://chromium.googlesource.com/catapult.git",
|
||||
"rev": "ddb5845c3f7d88d8698e602547bd854b36f0604f",
|
||||
"hash": "sha256-N+h99EL03NL6sAGJJM/aZEdVibn7SziLJp5G09y0EOc="
|
||||
},
|
||||
"src/third_party/ced/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/google/compact_enc_det.git",
|
||||
"rev": "ba412eaaacd3186085babcd901679a48863c7dd5",
|
||||
"hash": "sha256-ySG74Rj2i2c/PltEgHVEDq+N8yd9gZmxNktc56zIUiY="
|
||||
},
|
||||
"src/third_party/cld_3/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/google/cld_3.git",
|
||||
"rev": "b48dc46512566f5a2d41118c8c1116c4f96dc661",
|
||||
"hash": "sha256-C3MOMBUy9jgkT9BAi/Fgm2UH4cxRuwSBEcRl3hzM2Ss="
|
||||
},
|
||||
"src/third_party/colorama/src": {
|
||||
"url": "https://chromium.googlesource.com/external/colorama.git",
|
||||
"rev": "3de9f013df4b470069d03d250224062e8cf15c49",
|
||||
"hash": "sha256-6ZTdPYSHdQOLYMSnE+Tp7PgsVTs3U2awGu9Qb4Rg/tk="
|
||||
},
|
||||
"src/third_party/cpu_features/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/google/cpu_features.git",
|
||||
"rev": "936b9ab5515dead115606559502e3864958f7f6e",
|
||||
"hash": "sha256-E8LoVzhe+TAmARWZTSuINlsVhzpUJMxPPCGe/dHZcyA="
|
||||
},
|
||||
"src/third_party/cpuinfo/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/pytorch/cpuinfo.git",
|
||||
"rev": "877328f188a3c7d1fa855871a278eb48d530c4c0",
|
||||
"hash": "sha256-JW83AgI1cWv4TSpXNe9sv/hNYAA7MOdUeTHY8+0lHgc="
|
||||
},
|
||||
"src/third_party/crc32c/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/google/crc32c.git",
|
||||
"rev": "d3d60ac6e0f16780bcfcc825385e1d338801a558",
|
||||
"hash": "sha256-KBraGaO5LmmPP+p8RuDogGldbTWdNDK+WzF4Q09keuE="
|
||||
},
|
||||
"src/third_party/cros_system_api": {
|
||||
"url": "https://chromium.googlesource.com/chromiumos/platform2/system_api.git",
|
||||
"rev": "2c31c25519405d3d2b107844fd5e8c8bc397dbf7",
|
||||
"hash": "sha256-Ew7gk1XxZccztYLZc4sOrzyKjNTkFPG8g+oOLy4/g1Q="
|
||||
},
|
||||
"src/third_party/crossbench": {
|
||||
"url": "https://chromium.googlesource.com/crossbench.git",
|
||||
"rev": "e4937b062fe8b9130ea0fc02c406c045b5cb7b31",
|
||||
"hash": "sha256-C//wuupFwZL4m8mMutY/SxCmg7mcfw2Sj5eS4c95+XE="
|
||||
},
|
||||
"src/third_party/crossbench-web-tests": {
|
||||
"url": "https://chromium.googlesource.com/chromium/web-tests.git",
|
||||
"rev": "3c76c8201f0732fe9781742229ab8ac43bf90cbf",
|
||||
"hash": "sha256-yJmi1IpUiKhdoHAXyazkpm+Ezuc4Hp8pOIBntG5hN+U="
|
||||
},
|
||||
"src/third_party/depot_tools": {
|
||||
"url": "https://chromium.googlesource.com/chromium/tools/depot_tools.git",
|
||||
"rev": "e2bb3cd55899346cc68bbfd5139e59c9d85a6984",
|
||||
"hash": "sha256-Qlc0UAdGRm1C0DNAqBsssND8PQZUVkj6aDaeExjwi2E="
|
||||
},
|
||||
"src/third_party/devtools-frontend/src": {
|
||||
"url": "https://chromium.googlesource.com/devtools/devtools-frontend",
|
||||
"rev": "e4dd1d1d96b706a33ae7d60237d3cdcd58294e4c",
|
||||
"hash": "sha256-6to/NYTcx7H5OXF1u6YT55uCHwf8RU1uJaSXvuFsQ/c="
|
||||
},
|
||||
"src/third_party/dom_distiller_js/dist": {
|
||||
"url": "https://chromium.googlesource.com/chromium/dom-distiller/dist.git",
|
||||
"rev": "199de96b345ada7c6e7e6ba3d2fa7a6911b8767d",
|
||||
"hash": "sha256-yuEBD2XQlV3FGI/i7lTmJbCqzeBiuG1Qow8wvsppGJw="
|
||||
},
|
||||
"src/third_party/dragonbox/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/jk-jeon/dragonbox.git",
|
||||
"rev": "6c7c925b571d54486b9ffae8d9d18a822801cbda",
|
||||
"hash": "sha256-AOniXMPgwKpkJqivRd+GazEnhdw53FzhxKqG+GdU+cc="
|
||||
},
|
||||
"src/third_party/eigen3/src": {
|
||||
"url": "https://chromium.googlesource.com/external/gitlab.com/libeigen/eigen.git",
|
||||
"rev": "cd4f989f8f9288ab5aed1643ecb04c7be021021e",
|
||||
"hash": "sha256-qkdtS4kz8m5ZW30SQpDCbgM3WvfCGc+WGsv59J4FYpQ="
|
||||
},
|
||||
"src/third_party/farmhash/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/google/farmhash.git",
|
||||
"rev": "816a4ae622e964763ca0862d9dbd19324a1eaf45",
|
||||
"hash": "sha256-5n58VEUxa/K//jAfZqG4cXyfxrp50ogWDNYcgiXVHdc="
|
||||
},
|
||||
"src/third_party/fast_float/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/fastfloat/fast_float.git",
|
||||
"rev": "cb1d42aaa1e14b09e1452cfdef373d051b8c02a4",
|
||||
"hash": "sha256-CG5je117WYyemTe5PTqznDP0bvY5TeXn8Vu1Xh5yUzQ="
|
||||
},
|
||||
"src/third_party/federated_compute/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/google-parfait/federated-compute.git",
|
||||
"rev": "e51058dfe7888094ecc09cda38bfceffd4d4664b",
|
||||
"hash": "sha256-5kuTp0TXOUCQQ7XcnwBRsQRxugl869hZhx8MbxDLwYk="
|
||||
},
|
||||
"src/third_party/ffmpeg": {
|
||||
"url": "https://chromium.googlesource.com/chromium/third_party/ffmpeg.git",
|
||||
"rev": "9e751092c9498b84bbb77e2e0689ef9f50fe608f",
|
||||
"hash": "sha256-ZeFzrCE9LkDcp3VTMJkm5ypX29RGZCyZkp3tEr7yFKU="
|
||||
},
|
||||
"src/third_party/flac": {
|
||||
"url": "https://chromium.googlesource.com/chromium/deps/flac.git",
|
||||
"rev": "807e251d9f8c5dd6059e547931e9c6a4251967af",
|
||||
"hash": "sha256-Y5TXyJ8lVh8TaVC5S4BVxOmFxySBzPbJYEe8YJS6ZR4="
|
||||
},
|
||||
"src/third_party/flatbuffers/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/google/flatbuffers.git",
|
||||
"rev": "187240970746d00bbd26b0f5873ed54d2477f9f3",
|
||||
"hash": "sha256-A9nWfgcuVW3x9MDFeviCUK/oGcWJQwadI8LqNR8BlQw="
|
||||
},
|
||||
"src/third_party/fontconfig/src": {
|
||||
"url": "https://chromium.googlesource.com/external/fontconfig.git",
|
||||
"rev": "f0ed9c3f43161d3555f6f7a5234b22fe7ca60727",
|
||||
"hash": "sha256-2h0dWn7MxAX+4o2tMZLyjRFAES+FTMaGaf8M7ySkSV8="
|
||||
},
|
||||
"src/third_party/fp16/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/Maratyszcza/FP16.git",
|
||||
"rev": "3d2de1816307bac63c16a297e8c4dc501b4076df",
|
||||
"hash": "sha256-CR7h1d9RFE86l6btk4N8vbQxy0KQDxSMvckbiO87JEg="
|
||||
},
|
||||
"src/third_party/gemmlowp/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/google/gemmlowp.git",
|
||||
"rev": "16e8662c34917be0065110bfcd9cc27d30f52fdf",
|
||||
"hash": "sha256-e6AeRhZioIiTG5R+IA9g2GBqI4o74wijJYmqINLOtQs="
|
||||
},
|
||||
"src/third_party/freetype/src": {
|
||||
"url": "https://chromium.googlesource.com/chromium/src/third_party/freetype2.git",
|
||||
"rev": "ae63cc0d13318f2f93fd440cce277388d1b30a49",
|
||||
"hash": "sha256-Tx5MbwMk+d2OZGd4CxJhJtP1pQyRJ0pe358OdKuWiRU="
|
||||
},
|
||||
"src/third_party/fxdiv/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/Maratyszcza/FXdiv.git",
|
||||
"rev": "63058eff77e11aa15bf531df5dd34395ec3017c8",
|
||||
"hash": "sha256-LjX5kivfHbqCIA5pF9qUvswG1gjOFo3CMpX0VR+Cn38="
|
||||
},
|
||||
"src/third_party/harfbuzz-ng/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/harfbuzz/harfbuzz.git",
|
||||
"rev": "7d936359a27abb2d7cb14ecc102463bb15c11843",
|
||||
"hash": "sha256-gUUXBd2/di6MYhUzo0QkGQvRY6KLcy7qdDlSClnmnL8="
|
||||
},
|
||||
"src/third_party/ink/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/google/ink.git",
|
||||
"rev": "f70052a0bbae22fe52b630844e9651b27db92ed2",
|
||||
"hash": "sha256-Mvxbdn4m/H3HBss31Z9nz0LphqpFeBHcX/kbFxJQPqM="
|
||||
},
|
||||
"src/third_party/ink_stroke_modeler/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/google/ink-stroke-modeler.git",
|
||||
"rev": "2cd45e8683025c28fa2efcf672ad46607e8af869",
|
||||
"hash": "sha256-h/xI/TPV2yiRLqrBgaDAkr8Nfg3RLkjHVuYX+nH99CQ="
|
||||
},
|
||||
"src/third_party/instrumented_libs": {
|
||||
"url": "https://chromium.googlesource.com/chromium/third_party/instrumented_libraries.git",
|
||||
"rev": "69015643b3f68dbd438c010439c59adc52cac808",
|
||||
"hash": "sha256-8kokdsnn5jD9KgM/6g0NuITBbKkGXWEM4BMr1nCrfdU="
|
||||
},
|
||||
"src/third_party/emoji-segmenter/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/google/emoji-segmenter.git",
|
||||
"rev": "955936be8b391e00835257059607d7c5b72ce744",
|
||||
"hash": "sha256-KdQdKBBipEBRT8UmNGao6yCB4m2CU8/SrMVvcXlb5qE="
|
||||
},
|
||||
"src/third_party/oak/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/project-oak/oak.git",
|
||||
"rev": "96c00a6c99ac382f3f3a8f376bc7a70890d1adaa",
|
||||
"hash": "sha256-+ouwII+i5CbWoJ3NAxQPmczofzkPwtZTtjIPaXyyXt8="
|
||||
},
|
||||
"src/third_party/ots/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/khaledhosny/ots.git",
|
||||
"rev": "46bea9879127d0ff1c6601b078e2ce98e83fcd33",
|
||||
"hash": "sha256-kiUXrXsaGOzPkKh0dVmU1I13WHt0Stzj7QLMqHN9FbU="
|
||||
},
|
||||
"src/third_party/libgav1/src": {
|
||||
"url": "https://chromium.googlesource.com/codecs/libgav1.git",
|
||||
"rev": "c05bf9be660cf170d7c26bd06bb42b3322180e58",
|
||||
"hash": "sha256-BgTfWmbcMvJB1KewJpRcMtbOd2FVuJ+fi1zAXBXfkrg="
|
||||
},
|
||||
"src/third_party/googletest/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/google/googletest.git",
|
||||
"rev": "b2b9072ecbe874f5937054653ef8f2731eb0f010",
|
||||
"hash": "sha256-cTPx19WAXlyXDK4nY0pxbMI4oRojaARgIeASA+MB3NY="
|
||||
},
|
||||
"src/third_party/hunspell_dictionaries": {
|
||||
"url": "https://chromium.googlesource.com/chromium/deps/hunspell_dictionaries.git",
|
||||
"rev": "41cdffd71c9948f63c7ad36e1fb0ff519aa7a37e",
|
||||
"hash": "sha256-67mvpJRFFa9eMfyqFMURlbxOaTJBICnk+gl0b0mEHl8="
|
||||
},
|
||||
"src/third_party/icu": {
|
||||
"url": "https://chromium.googlesource.com/chromium/deps/icu.git",
|
||||
"rev": "a86a32e67b8d1384b33f8fa48c83a6079b86f8cd",
|
||||
"hash": "sha256-zFxeAY6lEFRGNbCOOJij0CFjp3512WkyaN1Ld0+WADs="
|
||||
},
|
||||
"src/third_party/jsoncpp/source": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/open-source-parsers/jsoncpp.git",
|
||||
"rev": "42e892d96e47b1f6e29844cc705e148ec4856448",
|
||||
"hash": "sha256-bSLNcoYBz3QCt5VuTR056V9mU2PmBuYBa0W6hFg2m8Q="
|
||||
},
|
||||
"src/third_party/leveldatabase/src": {
|
||||
"url": "https://chromium.googlesource.com/external/leveldb.git",
|
||||
"rev": "4ee78d7ea98330f7d7599c42576ca99e3c6ff9c5",
|
||||
"hash": "sha256-ANtMVRZmW6iOjDVn2y15ak2fTagFTTaz1Se6flUHL8w="
|
||||
},
|
||||
"src/third_party/libFuzzer/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/llvm/llvm-project/compiler-rt/lib/fuzzer.git",
|
||||
"rev": "bea408a6e01f0f7e6c82a43121fe3af4506c932e",
|
||||
"hash": "sha256-TDi1OvYClJKmEDikanKVTmy8uxUXJ95nuVKo5u+uFPM="
|
||||
},
|
||||
"src/third_party/fuzztest/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/google/fuzztest.git",
|
||||
"rev": "7940ee9a7ebce6419c6391eef8b289524b16f198",
|
||||
"hash": "sha256-uIb2nzPzMU/FZGYs3cFQwc4QNTNRmz01uF6XDCLrgDk="
|
||||
},
|
||||
"src/third_party/domato/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/googleprojectzero/domato.git",
|
||||
"rev": "053714bccbda79cf76dac3fee48ab2b27f21925e",
|
||||
"hash": "sha256-fYxoA0fxKe9U23j+Jp0MWj4m7RfsRpM0XjF6/yOhX1I="
|
||||
},
|
||||
"src/third_party/libaddressinput/src": {
|
||||
"url": "https://chromium.googlesource.com/external/libaddressinput.git",
|
||||
"rev": "2610f7b1043d6784ada41392fc9392d1ea09ea07",
|
||||
"hash": "sha256-6h4/DQUBoBtuGfbaTL5Te1Z+24qjTaBuIydcTV18j80="
|
||||
},
|
||||
"src/third_party/libaom/source/libaom": {
|
||||
"url": "https://aomedia.googlesource.com/aom.git",
|
||||
"rev": "93233d27eb23ac3f1f13da1b19c5380bacc75baa",
|
||||
"hash": "sha256-wDW+YXxIaenDtqf3zdpMT2hbwEMEswC88+Q2ylfzHw0="
|
||||
},
|
||||
"src/third_party/crabbyavif/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/webmproject/CrabbyAvif.git",
|
||||
"rev": "3ba05863e84fd3acb4f4af2b4545221b317a2e55",
|
||||
"hash": "sha256-HUGkuQWfUGsE6crsluI7l5H2DYalruoDKqBjbVfE7BM="
|
||||
},
|
||||
"src/third_party/nearby/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/google/nearby-connections.git",
|
||||
"rev": "0bad8b0c9877f92eeeb550654f1ea51a71a085e4",
|
||||
"hash": "sha256-Mwuo2RlKweqZPkDw4OcJDD+QNRiXVysSyzLdjHsG1mA="
|
||||
},
|
||||
"src/third_party/securemessage/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/google/securemessage.git",
|
||||
"rev": "fa07beb12babc3b25e0c5b1f38c16aa8cb6b8f84",
|
||||
"hash": "sha256-GS4ccnuiqxMs/LVYAtvSlVAYFp4a5GoZsxcriTX3k78="
|
||||
},
|
||||
"src/third_party/jetstream/main": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/WebKit/JetStream.git",
|
||||
"rev": "0debbb0b94486d4c78162ad5a102279b96dc79d3",
|
||||
"hash": "sha256-w1oBQrjYK8ze02MRNPO8PsV5rNHiLzToCQjoSm+NagI="
|
||||
},
|
||||
"src/third_party/jetstream/v2.2": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/WebKit/JetStream.git",
|
||||
"rev": "2145cedef4ca2777b792cb0059d3400ee2a6153c",
|
||||
"hash": "sha256-zucA2tqNOsvjhwYQKZ5bFUC73ZF/Fu7KpBflSelvixw="
|
||||
},
|
||||
"src/third_party/speedometer/main": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/WebKit/Speedometer.git",
|
||||
"rev": "d90b6fde07041d9d19ab71de32b461b613c899a1",
|
||||
"hash": "sha256-/S8YBNfxbQe6Wt0h2Otuw7+bkObBtvmtb6ZO6nsce6E="
|
||||
},
|
||||
"src/third_party/speedometer/v3.1": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/WebKit/Speedometer.git",
|
||||
"rev": "1386415be8fef2f6b6bbdbe1828872471c5d802a",
|
||||
"hash": "sha256-G89mrrgRaANT1vqzhKPQKemHbz56YwR+oku7rlRoCHw="
|
||||
},
|
||||
"src/third_party/speedometer/v3.0": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/WebKit/Speedometer.git",
|
||||
"rev": "8d67f28d0281ac4330f283495b7f48286654ad7d",
|
||||
"hash": "sha256-qMQ4naX+4uUu3vtzzinjkhxX9/dNoTwj6vWCu4FdQmU="
|
||||
},
|
||||
"src/third_party/speedometer/v2.1": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/WebKit/Speedometer.git",
|
||||
"rev": "8bf7946e39e47c875c00767177197aea5727e84a",
|
||||
"hash": "sha256-0z5tZlz32fYh9I1ALqfLm2WWO8HiRBwt0hcmgKQhaeM="
|
||||
},
|
||||
"src/third_party/speedometer/v2.0": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/WebKit/Speedometer.git",
|
||||
"rev": "732af0dfe867f8815e662ac637357e55f285dbbb",
|
||||
"hash": "sha256-p7WUS8gZUaS+LOm7pNmRkwgxjx+V8R6yy7bbaEHaIs4="
|
||||
},
|
||||
"src/third_party/ukey2/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/google/ukey2.git",
|
||||
"rev": "0275885d8e6038c39b8a8ca55e75d1d4d1727f47",
|
||||
"hash": "sha256-aaLs6ZS+CdBlCJ6ZhsmdAPFxiBIij6oufsDcNeRSV1E="
|
||||
},
|
||||
"src/third_party/cros-components/src": {
|
||||
"url": "https://chromium.googlesource.com/external/google3/cros_components.git",
|
||||
"rev": "7ccdbf60606671c2c057628125908fbfef9bd0c8",
|
||||
"hash": "sha256-g7LzBd2V21AaLdSdCw65WGYvKfrbtpRXsYc+3ILdiKs="
|
||||
},
|
||||
"src/third_party/libdrm/src": {
|
||||
"url": "https://chromium.googlesource.com/chromiumos/third_party/libdrm.git",
|
||||
"rev": "ad78bb591d02162d3b90890aa4d0a238b2a37cde",
|
||||
"hash": "sha256-woSYEDUfcEBpYOYnli13wLMt754A7KnUbmTEcFQdFGw="
|
||||
},
|
||||
"src/third_party/expat/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/libexpat/libexpat.git",
|
||||
"rev": "69d6c054c1bd5258c2a13405a7f5628c72c177c2",
|
||||
"hash": "sha256-qe8O7otL6YcDDBx2DS/+c5mWIS8Rf8RQXVtLFMIAeyk="
|
||||
},
|
||||
"src/third_party/libipp/libipp": {
|
||||
"url": "https://chromium.googlesource.com/chromiumos/platform2/libipp.git",
|
||||
"rev": "4be5f77f672a3a9f1bbf3c935fb0ea8b3f86ce61",
|
||||
"hash": "sha256-GzLVt6RIN+FgOpcK61ya5lvdIIhQRciAb/ISIirWogY="
|
||||
},
|
||||
"src/third_party/libjpeg_turbo": {
|
||||
"url": "https://chromium.googlesource.com/chromium/deps/libjpeg_turbo.git",
|
||||
"rev": "e14cbfaa85529d47f9f55b0f104a579c1061f9ad",
|
||||
"hash": "sha256-Ig+tmprZDvlf/M72/DTar2pbxat9ZElgSqdXdoM0lPs="
|
||||
},
|
||||
"src/third_party/liblouis/src": {
|
||||
"url": "https://chromium.googlesource.com/external/liblouis-github.git",
|
||||
"rev": "9700847afb92cb35969bdfcbbfbbb74b9c7b3376",
|
||||
"hash": "sha256-EI/uaHXe0NlqdEw764q0SjerThYEVLRogUlmrsZwXnY="
|
||||
},
|
||||
"src/third_party/libphonenumber/dist": {
|
||||
"url": "https://chromium.googlesource.com/external/libphonenumber.git",
|
||||
"rev": "9d46308f313f2bf8dbce1dfd4f364633ca869ca7",
|
||||
"hash": "sha256-ZbuDrZEUVp/ekjUP8WO/FsjAomRjeDBptT4nQZvTVi4="
|
||||
},
|
||||
"src/third_party/libprotobuf-mutator/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/google/libprotobuf-mutator.git",
|
||||
"rev": "7bf98f78a30b067e22420ff699348f084f802e12",
|
||||
"hash": "sha256-EaEC6R7SzqLw4QjEcWXFXhZc84lNBp6RSa9izjGnWKE="
|
||||
},
|
||||
"src/third_party/libsrtp": {
|
||||
"url": "https://chromium.googlesource.com/chromium/deps/libsrtp.git",
|
||||
"rev": "a52756acb1c5e133089c798736dd171567df11f5",
|
||||
"hash": "sha256-bkG1+ss+1a2rCHGwZjhvf5UaNVbPPZJt9HZSIPBKGwM="
|
||||
},
|
||||
"src/third_party/libsync/src": {
|
||||
"url": "https://chromium.googlesource.com/aosp/platform/system/core/libsync.git",
|
||||
"rev": "d29ac04dc81e6b072c091c5b1342a282765ea250",
|
||||
"hash": "sha256-aI7Exie3AmTy8R/Ua5lua0lCwMO1k4wMS6cxulU6iD8="
|
||||
},
|
||||
"src/third_party/libva-fake-driver/src": {
|
||||
"url": "https://chromium.googlesource.com/chromiumos/platform/libva-fake-driver.git",
|
||||
"rev": "a9bcab9cd6b15d4e3634ca44d5e5f7652c612194",
|
||||
"hash": "sha256-em/8rNqwv6szlxyji7mnYr3nObSW/x3OzEEnkiLuqpI="
|
||||
},
|
||||
"src/third_party/libvpx/source/libvpx": {
|
||||
"url": "https://chromium.googlesource.com/webm/libvpx.git",
|
||||
"rev": "4c1801be20dd53900d2a7cd74f6fc91a9ae353be",
|
||||
"hash": "sha256-8k8KWkDS3kvJjHWVlOlTW/By7rQLiT7TrOtxwEOCXgk="
|
||||
},
|
||||
"src/third_party/libwebm/source": {
|
||||
"url": "https://chromium.googlesource.com/webm/libwebm.git",
|
||||
"rev": "f2a982d748b80586ae53b89a2e6ebbc305848b8c",
|
||||
"hash": "sha256-SxDGt7nPVkSxwRF/lMmcch1h+C2Dyh6GZUXoZjnXWb4="
|
||||
},
|
||||
"src/third_party/libwebp/src": {
|
||||
"url": "https://chromium.googlesource.com/webm/libwebp.git",
|
||||
"rev": "c00d83f6642e7838a12bb03bca94237f03cc2e00",
|
||||
"hash": "sha256-a7F97BEnwpdx9W8OsVnz+NfIYW+J1XVDSi38KsIZIfI="
|
||||
},
|
||||
"src/third_party/libyuv": {
|
||||
"url": "https://chromium.googlesource.com/libyuv/libyuv.git",
|
||||
"rev": "900da61d3cadba86ec593c8226de736b5e6b2c43",
|
||||
"hash": "sha256-vqPiv1HJe883aDOjzLBNXGA/b/F/frcW3Iml3ZUyHlY="
|
||||
},
|
||||
"src/third_party/lss": {
|
||||
"url": "https://chromium.googlesource.com/linux-syscall-support.git",
|
||||
"rev": "29164a80da4d41134950d76d55199ea33fbb9613",
|
||||
"hash": "sha256-89CdA7vBYudbko0nAIyHcpHMXqFZHC05kwRIUmeEWGo="
|
||||
},
|
||||
"src/third_party/material_color_utilities/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/material-foundation/material-color-utilities.git",
|
||||
"rev": "13434b50dcb64a482cc91191f8cf6151d90f5465",
|
||||
"hash": "sha256-Y85XU+z9W6tvmDNHJ/dXQnUKXvvDkO3nH/kUJRLqbc4="
|
||||
},
|
||||
"src/third_party/minigbm/src": {
|
||||
"url": "https://chromium.googlesource.com/chromiumos/platform/minigbm.git",
|
||||
"rev": "3018207f4d89395cc271278fb9a6558b660885f5",
|
||||
"hash": "sha256-9HwvjTETerbQ7YKXH9kUB2eWa8PxGWMAJfx1jAluhrs="
|
||||
},
|
||||
"src/third_party/nasm": {
|
||||
"url": "https://chromium.googlesource.com/chromium/deps/nasm.git",
|
||||
"rev": "e2c93c34982b286b27ce8b56dd7159e0b90869a2",
|
||||
"hash": "sha256-TxzAcp+CoKnnM0lCGjm+L3h6M30vYHjM07vW6zUe/vY="
|
||||
},
|
||||
"src/third_party/neon_2_sse/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/intel/ARM_NEON_2_x86_SSE.git",
|
||||
"rev": "eb8b80b28f956275e291ea04a7beb5ed8289e872",
|
||||
"hash": "sha256-AkDAHOPO5NdXXk0hETS5D67mzw0RVXwPDDKqM0XXo5g="
|
||||
},
|
||||
"src/third_party/openh264/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/cisco/openh264",
|
||||
"rev": "652bdb7719f30b52b08e506645a7322ff1b2cc6f",
|
||||
"hash": "sha256-tf0lnxATCkoq+xRti6gK6J47HwioAYWnpEsLGSA5Xdg="
|
||||
},
|
||||
"src/third_party/openscreen/src": {
|
||||
"url": "https://chromium.googlesource.com/openscreen",
|
||||
"rev": "279b21edd27132609d2f46b702c42455ea05c4a8",
|
||||
"hash": "sha256-BxS1VaDK6ZwS7tXjimeBPNqdPKsIOosH29cL6EmWEM4="
|
||||
},
|
||||
"src/third_party/openscreen/src/buildtools": {
|
||||
"url": "https://chromium.googlesource.com/chromium/src/buildtools",
|
||||
"rev": "077a66f30fcf281b066fafb6dfc60818c238efb6",
|
||||
"hash": "sha256-WnbgaCzZ/BJli6M60kP9e4mVPFDx0yu3eCac5wmQ7iM="
|
||||
},
|
||||
"src/third_party/openscreen/src/third_party/tinycbor/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/intel/tinycbor.git",
|
||||
"rev": "d393c16f3eb30d0c47e6f9d92db62272f0ec4dc7",
|
||||
"hash": "sha256-fMKBFUSKmODQyg4hKIa1hwnEKIV6WBbY1Gb8DOSnaHA="
|
||||
},
|
||||
"src/third_party/pdfium": {
|
||||
"url": "https://pdfium.googlesource.com/pdfium.git",
|
||||
"rev": "f5c376f93d33709ecd6b0dc8147b14a651ddbfeb",
|
||||
"hash": "sha256-Rfpdow3S3HTHVEEAmCyiKU7XfuUoxvtHeWV+wfarvF8="
|
||||
},
|
||||
"src/third_party/perfetto": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/google/perfetto.git",
|
||||
"rev": "ac7792a0f3f1cbfffb071e8b97cd9a5168900e03",
|
||||
"hash": "sha256-9vpds/Xgw65uW5TG0kenqFVEh/NM1V3OpRdkGd0pMk4="
|
||||
},
|
||||
"src/third_party/protobuf-javascript/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/protocolbuffers/protobuf-javascript",
|
||||
"rev": "e6d763860001ba1a76a63adcff5efb12b1c96024",
|
||||
"hash": "sha256-1o6N9+1wsQSu1B4w5LlGlwzIUmuPCIYHPqwOyt234ZM="
|
||||
},
|
||||
"src/third_party/pthreadpool/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/google/pthreadpool.git",
|
||||
"rev": "0e6ca13779b57d397a5ba6bfdcaa8a275bc8ea2e",
|
||||
"hash": "sha256-FPUKjWARY4TdUq7ni48tnszEdmVYxPXIgtddPBHn/U0="
|
||||
},
|
||||
"src/third_party/pyelftools": {
|
||||
"url": "https://chromium.googlesource.com/chromiumos/third_party/pyelftools.git",
|
||||
"rev": "19b3e610c86fcadb837d252c794cb5e8008826ae",
|
||||
"hash": "sha256-I/7p3IEvfP/gkes4kx18PvWwhAKilQKb67GXoW4zFB4="
|
||||
},
|
||||
"src/third_party/quic_trace/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/google/quic-trace.git",
|
||||
"rev": "e5c4ef17d934e078644e65d667ca6d86fe020d49",
|
||||
"hash": "sha256-LFZ5qFQoyBKta05wJUtJh3oIvaBYlzOozFpDulrQ/no="
|
||||
},
|
||||
"src/third_party/pywebsocket3/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/GoogleChromeLabs/pywebsocket3.git",
|
||||
"rev": "50602a14f1b6da17e0b619833a13addc6ea78bc2",
|
||||
"hash": "sha256-WEqqu2/7fLqcf/2/IcD7/FewRSZ6jTgVlVBvnihthYQ="
|
||||
},
|
||||
"src/third_party/re2/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/google/re2.git",
|
||||
"rev": "61c4644171ee6b480540bf9e569cba06d9090b4b",
|
||||
"hash": "sha256-fRnjrP6Bz33eW+bOta5v3k9gqgN+gBvRH+t1i7b+eXA="
|
||||
},
|
||||
"src/third_party/ruy/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/google/ruy.git",
|
||||
"rev": "9940fbf1e0c0863907e77e0600b99bb3e2bc2b9f",
|
||||
"hash": "sha256-fV0El2ZgjxLqstKVN35SL72+diHNK0FkBmG5UwVZFrk="
|
||||
},
|
||||
"src/third_party/search_engines_data/resources": {
|
||||
"url": "https://chromium.googlesource.com/external/search_engines_data.git",
|
||||
"rev": "94eb2a9a225078cb5f40e82fd890bce387c8121a",
|
||||
"hash": "sha256-WWkOOnOI3ohPuO+M9/x53hyDO11P6E6Z6ZZvKmQEyjI="
|
||||
},
|
||||
"src/third_party/skia": {
|
||||
"url": "https://skia.googlesource.com/skia.git",
|
||||
"rev": "da51f0d60ea2b14e845a823dc11b405dbeef42d8",
|
||||
"hash": "sha256-thUbelru/6nPF7haXJtW6ncT6sIQzYqi0BCAJ+BWNY0="
|
||||
},
|
||||
"src/third_party/smhasher/src": {
|
||||
"url": "https://chromium.googlesource.com/external/smhasher.git",
|
||||
"rev": "0ff96f7835817a27d0487325b6c16033e2992eb5",
|
||||
"hash": "sha256-OgZQwkQcVgRMf62ROGuY+3zQhBoWuUSP4naTmSKdq8s="
|
||||
},
|
||||
"src/third_party/snappy/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/google/snappy.git",
|
||||
"rev": "32ded457c0b1fe78ceb8397632c416568d6714a0",
|
||||
"hash": "sha256-jUwnjbaqXz7fgI2TPRK7SlUPQUVzcpjp4ZlFbEzwA+o="
|
||||
},
|
||||
"src/third_party/sqlite/src": {
|
||||
"url": "https://chromium.googlesource.com/chromium/deps/sqlite.git",
|
||||
"rev": "7d348fc79216a09b864ff881d8561a6222301666",
|
||||
"hash": "sha256-13HMEpzzcFx/UKqt4V68619R+0j4B/GOl6NYlhpBk0c="
|
||||
},
|
||||
"src/third_party/swiftshader": {
|
||||
"url": "https://swiftshader.googlesource.com/SwiftShader.git",
|
||||
"rev": "3d536c0fc62b1cdea0f78c3c38d79be559855b88",
|
||||
"hash": "sha256-mlKoTdZgqfMzKGB7dUaETCd6NIQm5dne59w09/0bnGE="
|
||||
},
|
||||
"src/third_party/text-fragments-polyfill/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/GoogleChromeLabs/text-fragments-polyfill.git",
|
||||
"rev": "c036420683f672d685e27415de0a5f5e85bdc23f",
|
||||
"hash": "sha256-4rW2u1cQAF4iPWHAt1FvVXIpz2pmI901rEPks/w/iFA="
|
||||
},
|
||||
"src/third_party/tflite/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/tensorflow/tensorflow.git",
|
||||
"rev": "5fcf510a862fb6d3c0d34906044389095a180ff6",
|
||||
"hash": "sha256-iXt3IutfZxiH9j7/mnx+YeZwak44+nhNo2rbDxtgKTg="
|
||||
},
|
||||
"src/third_party/vulkan-deps": {
|
||||
"url": "https://chromium.googlesource.com/vulkan-deps",
|
||||
"rev": "224a52b06d0e019c7f7c006c2306de095207f77f",
|
||||
"hash": "sha256-/RkiBLiXo7Z+FUIjHIrvvcU8Mg6vX9vJUn8Cz1fI2OE="
|
||||
},
|
||||
"src/third_party/glslang/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/KhronosGroup/glslang",
|
||||
"rev": "36b4d078576ad465e85b4b0502695ac5f3edb2e6",
|
||||
"hash": "sha256-A2D6fSfHpeXsYnXZs9l7DRE4ELUHbNQxr7HaokFByDQ="
|
||||
},
|
||||
"src/third_party/spirv-cross/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/KhronosGroup/SPIRV-Cross",
|
||||
"rev": "b8fcf307f1f347089e3c46eb4451d27f32ebc8d3",
|
||||
"hash": "sha256-H43M9DXfEuyKuvo6rjb5k0KEbYOSFodbPJh8ZKY4PQg="
|
||||
},
|
||||
"src/third_party/spirv-headers/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/KhronosGroup/SPIRV-Headers",
|
||||
"rev": "6bb105b6c4b3a246e1e6bb96366fe14c6dbfde83",
|
||||
"hash": "sha256-rgLhWf3U7gMjB+mpwq4EgQdRS6yP2/Q71Ns42ZDu7cc="
|
||||
},
|
||||
"src/third_party/spirv-tools/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/KhronosGroup/SPIRV-Tools",
|
||||
"rev": "05b0ab1253db43c3ea29efd593f3f13dfa621ab1",
|
||||
"hash": "sha256-OmvvBOBacp8ZgY+tcV1a7OmdGL607rrH89bu9uLj1L4="
|
||||
},
|
||||
"src/third_party/vulkan-headers/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-Headers",
|
||||
"rev": "df274657d83f3bd8c77aef816c1cbf27352a948b",
|
||||
"hash": "sha256-/YXVD60zaSRgqkAFGZs0D0T2LoXRgMnYcO/RkQznW+I="
|
||||
},
|
||||
"src/third_party/vulkan-loader/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-Loader",
|
||||
"rev": "e1cad037970cfeeb86051c49d00ead75311acbec",
|
||||
"hash": "sha256-/xnxL+S6Z04FLHLv1V/YBcDu4fzhXvAqfHgS5cgeVhg="
|
||||
},
|
||||
"src/third_party/vulkan-tools/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-Tools",
|
||||
"rev": "7f6326618226225269a274869ac638b870c8fe2b",
|
||||
"hash": "sha256-hInSJsfPuI7U74rEqFQf6De1QoBkFjAnGLFE91uyJ5s="
|
||||
},
|
||||
"src/third_party/vulkan-utility-libraries/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-Utility-Libraries",
|
||||
"rev": "ea43e2f5e51e9ad958a40fdce981f2f0abf09cb5",
|
||||
"hash": "sha256-7SYRTJLLkC1OXDZ/llNRpVKhQeNak2IFxrHNJKRfrLk="
|
||||
},
|
||||
"src/third_party/vulkan-validation-layers/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-ValidationLayers",
|
||||
"rev": "0cb2d651931455e44aa898585d7d78a9d90d31c5",
|
||||
"hash": "sha256-IxxvrY90d/NJWRNcvMIaUjg2o7LZEHi2gmOe+eyJmHI="
|
||||
},
|
||||
"src/third_party/vulkan_memory_allocator": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git",
|
||||
"rev": "cb0597213b0fcb999caa9ed08c2f88dc45eb7d50",
|
||||
"hash": "sha256-yBCs3zfqs/60htsZAOscjcyKhVbAWE6znweuXcs1oKo="
|
||||
},
|
||||
"src/third_party/wayland/src": {
|
||||
"url": "https://chromium.googlesource.com/external/anongit.freedesktop.org/git/wayland/wayland.git",
|
||||
"rev": "736d12ac67c20c60dc406dc49bb06be878501f86",
|
||||
"hash": "sha256-5iG0HaPXJCEo027TuyXlJQNGluTaAPlvwQDFbiYOEJQ="
|
||||
},
|
||||
"src/third_party/wayland-protocols/src": {
|
||||
"url": "https://chromium.googlesource.com/external/anongit.freedesktop.org/git/wayland/wayland-protocols.git",
|
||||
"rev": "efbc060534be948b63e1f395d69b583eebba3235",
|
||||
"hash": "sha256-tdpEK7soY0aKSk6VD4nulH7ORubX8RfjXYmNAd/cWKY="
|
||||
},
|
||||
"src/third_party/wayland-protocols/kde": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/KDE/plasma-wayland-protocols.git",
|
||||
"rev": "0b07950714b3a36c9b9f71fc025fc7783e82926e",
|
||||
"hash": "sha256-Dmcp/2ms/k7NxPPmPkp0YNfM9z2Es1ZO0uX10bc7N2Y="
|
||||
},
|
||||
"src/third_party/wayland-protocols/gtk": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/GNOME/gtk.git",
|
||||
"rev": "40ebed3a03aef096addc0af09fec4ec529d882a0",
|
||||
"hash": "sha256-75XNnLkF5Lt1LMRGT+T61k0/mLa3kkynfN+QWvZ0LiQ="
|
||||
},
|
||||
"src/third_party/webdriver/pylib": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/SeleniumHQ/selenium/py.git",
|
||||
"rev": "1e954903022e9386b9acf452c24f4458dd4c4fc1",
|
||||
"hash": "sha256-k5qx4xyO83jPtHaMh6aMigMJ3hsytFdFQOcZLmwPEYo="
|
||||
},
|
||||
"src/third_party/webgl/src": {
|
||||
"url": "https://chromium.googlesource.com/external/khronosgroup/webgl.git",
|
||||
"rev": "c01b768bce4a143e152c1870b6ba99ea6267d2b0",
|
||||
"hash": "sha256-mSketnpcDtz3NnhPkXMpMpq8MWcFiSviJbK6h06fcnw="
|
||||
},
|
||||
"src/third_party/webgpu-cts/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/gpuweb/cts.git",
|
||||
"rev": "eefe6f33964beec1bd1534b1d9065ad027b71740",
|
||||
"hash": "sha256-g+zg7SpK/BztfgT+y45Ygb9+7izQpkgAM3vRX5iKkbU="
|
||||
},
|
||||
"src/third_party/webpagereplay": {
|
||||
"url": "https://chromium.googlesource.com/webpagereplay.git",
|
||||
"rev": "ab0ca8075f0cc5d40fed25e08ddabb144c29fc08",
|
||||
"hash": "sha256-hZ2TH5AsPPqxxShDTG1hhgpZWqXccD7TsoPfXcdhIUg="
|
||||
},
|
||||
"src/third_party/webrtc": {
|
||||
"url": "https://webrtc.googlesource.com/src.git",
|
||||
"rev": "4e31d1a1ff41bb1b79609c83f998458a111a149c",
|
||||
"hash": "sha256-3tfB6jNsTLYozYqBfAmYNmq94wQ3OFxBSlOfRaj6wxc="
|
||||
},
|
||||
"src/third_party/wuffs/src": {
|
||||
"url": "https://skia.googlesource.com/external/github.com/google/wuffs-mirror-release-c.git",
|
||||
"rev": "e3f919ccfe3ef542cfc983a82146070258fb57f8",
|
||||
"hash": "sha256-373d2F/STcgCHEq+PO+SCHrKVOo6uO1rqqwRN5eeBCw="
|
||||
},
|
||||
"src/third_party/weston/src": {
|
||||
"url": "https://chromium.googlesource.com/external/anongit.freedesktop.org/git/wayland/weston.git",
|
||||
"rev": "bdba2f9adaca673fd58339d8140bc04727ee279d",
|
||||
"hash": "sha256-o49a3sp+D9FycxeB+uMcKouVvlKWoWpfws7FLEGJ/V8="
|
||||
},
|
||||
"src/third_party/xdg-utils": {
|
||||
"url": "https://chromium.googlesource.com/chromium/deps/xdg-utils.git",
|
||||
"rev": "cb54d9db2e535ee4ef13cc91b65a1e2741a94a44",
|
||||
"hash": "sha256-WuQ9uDq+QD17Y20ACFGres4nbkeOiTE2y+tY1avAT5U="
|
||||
},
|
||||
"src/third_party/xnnpack/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/google/XNNPACK.git",
|
||||
"rev": "98a027498845d3e2acd0e983fff6950714edbfc2",
|
||||
"hash": "sha256-MwzgJN/QE3pLI+5UZNz2oepBibQq5j4CKLDQ1jFyi2w="
|
||||
},
|
||||
"src/third_party/zstd/src": {
|
||||
"url": "https://chromium.googlesource.com/external/github.com/facebook/zstd.git",
|
||||
"rev": "89d685e42dbcf815a16ed0fcd7d050ef74ccad96",
|
||||
"hash": "sha256-xFObjxA4LKOnCugxaYek3cU4ld3JwLj5jFoRJ20hje4="
|
||||
},
|
||||
"src/v8": {
|
||||
"url": "https://chromium.googlesource.com/v8/v8.git",
|
||||
"rev": "326f5f8cad3f0e436c8ea8f82a6894936a32e860",
|
||||
"hash": "sha256-crTEZnN5iWTXOxpAkvIDPQ6hyfF54F1/ImoKrdmO2K4="
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
163
pkgs/by-name/he/helium-browser/package.nix
Normal file
163
pkgs/by-name/he/helium-browser/package.nix
Normal file
@@ -0,0 +1,163 @@
|
||||
{
|
||||
stdenv,
|
||||
lib,
|
||||
makeWrapper,
|
||||
ed,
|
||||
gsettings-desktop-schemas,
|
||||
gtk3,
|
||||
gtk4,
|
||||
adwaita-icon-theme,
|
||||
libva,
|
||||
pipewire,
|
||||
wayland,
|
||||
glib,
|
||||
libkrb5,
|
||||
xdg-utils,
|
||||
coreutils,
|
||||
gnugrep,
|
||||
callPackage,
|
||||
rustc,
|
||||
runCommand,
|
||||
widevine-cdm,
|
||||
enableWideVine ? false,
|
||||
proprietaryCodecs ? true,
|
||||
cupsSupport ? true,
|
||||
pulseSupport ? stdenv.hostPlatform.isLinux,
|
||||
commandLineArgs ? "",
|
||||
|
||||
}:
|
||||
let
|
||||
upstream-info = (lib.importJSON ./info.json)."ungoogled-chromium";
|
||||
unwrapped = callPackage ./unwrapped.nix {
|
||||
inherit
|
||||
helium-patcher-unwrapped
|
||||
upstream-info
|
||||
proprietaryCodecs
|
||||
cupsSupport
|
||||
pulseSupport
|
||||
;
|
||||
stdenv = rustc.llvmPackages.stdenv;
|
||||
};
|
||||
helium-patcher-unwrapped = callPackage ./helium-patcher.nix { };
|
||||
sandboxExecutableName = unwrapped.passthru.sandboxExecutableName;
|
||||
|
||||
chromiumWV =
|
||||
let
|
||||
browser = unwrapped;
|
||||
in
|
||||
if enableWideVine then
|
||||
runCommand (browser.name + "-wv") { version = browser.version; } ''
|
||||
mkdir -p $out
|
||||
cp -a ${browser}/* $out/
|
||||
chmod u+w $out/libexec/helium
|
||||
cp -a ${widevine-cdm}/share/google/chrome/WidevineCdm $out/libexec/helium/
|
||||
''
|
||||
else
|
||||
browser;
|
||||
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
pname = "helium-browser";
|
||||
inherit (unwrapped) version;
|
||||
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
ed
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
# needed for GSETTINGS_SCHEMAS_PATH
|
||||
gsettings-desktop-schemas
|
||||
glib
|
||||
gtk3
|
||||
gtk4
|
||||
|
||||
# needed for XDG_ICON_DIRS
|
||||
adwaita-icon-theme
|
||||
|
||||
# Needed for kerberos at runtime
|
||||
libkrb5
|
||||
];
|
||||
|
||||
outputs = [
|
||||
"out"
|
||||
"sandbox"
|
||||
];
|
||||
|
||||
buildCommand =
|
||||
let
|
||||
browserBinary = "${chromiumWV}/libexec/helium/helium";
|
||||
libPath = lib.makeLibraryPath [
|
||||
libva
|
||||
pipewire
|
||||
wayland
|
||||
gtk3
|
||||
gtk4
|
||||
libkrb5
|
||||
];
|
||||
|
||||
in
|
||||
''
|
||||
mkdir -p "$out/bin"
|
||||
|
||||
makeWrapper "${browserBinary}" "$out/bin/helium" \
|
||||
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime=true}}" \
|
||||
--add-flags ${lib.escapeShellArg commandLineArgs}
|
||||
ed -v -s "$out/bin/helium" << EOF
|
||||
2i
|
||||
|
||||
if [ -x "/run/wrappers/bin/${sandboxExecutableName}" ]
|
||||
then
|
||||
export CHROME_DEVEL_SANDBOX="/run/wrappers/bin/${sandboxExecutableName}"
|
||||
else
|
||||
export CHROME_DEVEL_SANDBOX="$sandbox/bin/${sandboxExecutableName}"
|
||||
fi
|
||||
|
||||
# Make generated desktop shortcuts have a valid executable name.
|
||||
export CHROME_WRAPPER='helium'
|
||||
|
||||
''
|
||||
+ lib.optionalString (libPath != "") ''
|
||||
# To avoid loading .so files from cwd, LD_LIBRARY_PATH here must not
|
||||
# contain an empty section before or after a colon.
|
||||
export LD_LIBRARY_PATH="\$LD_LIBRARY_PATH\''${LD_LIBRARY_PATH:+:}${libPath}"
|
||||
''
|
||||
+ ''
|
||||
|
||||
# libredirect causes chromium to deadlock on startup
|
||||
export LD_PRELOAD="\$(echo -n "\$LD_PRELOAD" | ${coreutils}/bin/tr ':' '\n' | ${gnugrep}/bin/grep -v /lib/libredirect\\\\.so$ | ${coreutils}/bin/tr '\n' ':')"
|
||||
|
||||
export XDG_DATA_DIRS=$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH\''${XDG_DATA_DIRS:+:}\$XDG_DATA_DIRS
|
||||
|
||||
''
|
||||
+ lib.optionalString (!xdg-utils.meta.broken) ''
|
||||
# Mainly for xdg-open but also other xdg-* tools (this is only a fallback; \$PATH is suffixed so that other implementations can be used):
|
||||
export PATH="\$PATH\''${PATH:+:}${xdg-utils}/bin"
|
||||
''
|
||||
+ ''
|
||||
|
||||
.
|
||||
w
|
||||
EOF
|
||||
|
||||
ln -sv "${unwrapped.sandbox}" "$sandbox"
|
||||
|
||||
ln -s "$out/bin/helium" "$out/bin/helium-browser"
|
||||
|
||||
mkdir -p "$out/share"
|
||||
for f in '${unwrapped}'/share/*; do # hello emacs */
|
||||
ln -s -t "$out/share/" "$f"
|
||||
done
|
||||
'';
|
||||
|
||||
inherit (unwrapped) packageName;
|
||||
meta = unwrapped.meta // {
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
passthru = {
|
||||
inherit (unwrapped) upstream-info;
|
||||
browser = unwrapped;
|
||||
inherit sandboxExecutableName;
|
||||
updateScript = ./update.mjs;
|
||||
};
|
||||
}
|
||||
18
pkgs/by-name/he/helium-browser/ungoogled-flags.toml
Normal file
18
pkgs/by-name/he/helium-browser/ungoogled-flags.toml
Normal file
@@ -0,0 +1,18 @@
|
||||
build_with_tflite_lib=false
|
||||
chrome_pgo_phase=0
|
||||
clang_use_chrome_plugins=false
|
||||
disable_fieldtrial_testing_config=true
|
||||
enable_hangout_services_extension=false
|
||||
enable_mdns=false
|
||||
enable_remoting=false
|
||||
enable_reporting=false
|
||||
enable_service_discovery=false
|
||||
enable_widevine=true
|
||||
exclude_unwind_tables=true
|
||||
google_api_key=""
|
||||
google_default_client_id=""
|
||||
google_default_client_secret=""
|
||||
safe_browsing_mode=0
|
||||
treat_warnings_as_errors=false
|
||||
use_official_google_api_keys=false
|
||||
use_unofficial_version_number=false
|
||||
227
pkgs/by-name/he/helium-browser/unwrapped.nix
Normal file
227
pkgs/by-name/he/helium-browser/unwrapped.nix
Normal file
@@ -0,0 +1,227 @@
|
||||
{
|
||||
stdenv,
|
||||
upstream-info,
|
||||
chromium,
|
||||
fetchurl,
|
||||
go-crx3,
|
||||
overrideCC,
|
||||
pkgsBuildBuild,
|
||||
lib,
|
||||
electron-source,
|
||||
helium-patcher-unwrapped,
|
||||
fetchzip,
|
||||
breakpointHook,
|
||||
proprietaryCodecs,
|
||||
cupsSupport,
|
||||
pulseSupport,
|
||||
}:
|
||||
let
|
||||
warnObsoleteVersionConditional =
|
||||
min-version: result:
|
||||
let
|
||||
min-supported-version = (lib.head (lib.attrValues electron-source)).unwrapped.info.chromium.version;
|
||||
# Warning can be toggled by changing the value of enabled:
|
||||
enabled = false;
|
||||
in
|
||||
lib.warnIf (enabled && lib.versionAtLeast min-supported-version min-version)
|
||||
"chromium: min-supported-version ${min-supported-version} is newer than a conditional bounded at ${min-version}. You can safely delete it."
|
||||
result;
|
||||
chromiumVersionAtLeast =
|
||||
min-version:
|
||||
let
|
||||
result = lib.versionAtLeast upstream-info.version min-version;
|
||||
in
|
||||
warnObsoleteVersionConditional min-version result;
|
||||
versionRange =
|
||||
min-version: upto-version:
|
||||
let
|
||||
inherit (upstream-info) version;
|
||||
result = lib.versionAtLeast version min-version && lib.versionOlder version upto-version;
|
||||
in
|
||||
warnObsoleteVersionConditional upto-version result;
|
||||
|
||||
in
|
||||
(
|
||||
(chromium.passthru.mkDerivation.override (old: {
|
||||
inherit stdenv;
|
||||
ungoogled = true;
|
||||
ungoogled-chromium = helium-patcher-unwrapped;
|
||||
inherit
|
||||
upstream-info
|
||||
chromiumVersionAtLeast
|
||||
versionRange
|
||||
proprietaryCodecs
|
||||
cupsSupport
|
||||
pulseSupport
|
||||
;
|
||||
|
||||
}))
|
||||
(
|
||||
base:
|
||||
let
|
||||
helium = helium-patcher-unwrapped {
|
||||
inherit (upstream-info.deps.ungoogled-patches) rev hash;
|
||||
};
|
||||
buildPlatformLlvmStdenv =
|
||||
let
|
||||
llvmPackages = pkgsBuildBuild.rustc.llvmPackages;
|
||||
in
|
||||
overrideCC llvmPackages.stdenv (
|
||||
llvmPackages.stdenv.cc.override {
|
||||
inherit (llvmPackages) bintools;
|
||||
}
|
||||
);
|
||||
|
||||
ublock_src =
|
||||
let
|
||||
version = "1.67.0";
|
||||
in
|
||||
fetchurl {
|
||||
url = "https://github.com/imputnet/ublock-origin-crx/releases/download/${version}/uBlock0_${version}.crx";
|
||||
hash = "sha256-06NjhGEfV5Msg098vq6NdPXPrGNrqVUkz+nlLoFVAac=";
|
||||
|
||||
recursiveHash = true;
|
||||
downloadToTemp = true;
|
||||
nativeBuildInputs = [
|
||||
go-crx3
|
||||
];
|
||||
postFetch = ''
|
||||
mv "$downloadedFile" "$TMPDIR/uBlock0_${version}.crx"
|
||||
crx3 unpack "$TMPDIR/uBlock0_${version}.crx"
|
||||
mv "uBlock0_${version}" "$out"
|
||||
'';
|
||||
};
|
||||
helium-onboarding =
|
||||
let
|
||||
version = "202511061712";
|
||||
in
|
||||
fetchzip {
|
||||
url = "https://github.com/imputnet/helium-onboarding/releases/download/${version}/helium-onboarding-${version}.tar.gz";
|
||||
hash = "sha256-wsEFW9Psj4xTFUwgWC12aLErp/QKDIhcRkcw9WZms8Q=";
|
||||
stripRoot = false;
|
||||
};
|
||||
search-engine-data = fetchzip {
|
||||
url = "https://gist.githubusercontent.com/wukko/2a591364dda346e10219e4adabd568b1/raw/e75ae3c4a1ce940ef7627916a48bc40882d24d40/nonfree-search-engines-data.tar.gz";
|
||||
hash = "sha256-G83WwfoNmzI0ib9SRfjoDEoULnwgOTMQurlr1fKIpoo=";
|
||||
stripRoot = false;
|
||||
};
|
||||
|
||||
in
|
||||
rec {
|
||||
inherit stdenv;
|
||||
pname = "helium-browser-unwrapped";
|
||||
version = "${upstream-info.deps.ungoogled-patches.rev}-${upstream-info.version}";
|
||||
depsBuildBuild =
|
||||
lib.filter (d: d != buildPlatformLlvmStdenv && d != buildPlatformLlvmStdenv.cc) base.depsBuildBuild
|
||||
++ [
|
||||
# breakpointHook
|
||||
];
|
||||
# skip chromium-126-llvm-17.patch
|
||||
patches = lib.filter (
|
||||
p:
|
||||
let
|
||||
name = (builtins.baseNameOf p);
|
||||
in
|
||||
!builtins.elem name [
|
||||
"chromium-126-llvm-17.patch"
|
||||
"x5k78i7w4zics8v9b9azy4k1g7c8586z-chromium-141-Revert-Remove-unnecessary-include-in-tree_scope.h.patch"
|
||||
"1rh5mwg9vxra2bbadh2saxzscfpxf5w4-chromium-142-Backport-Add-missing-include-for-FormFieldData-type-completeness.patch"
|
||||
]
|
||||
) base.patches;
|
||||
|
||||
postUnpack = ''
|
||||
cp -r ${helium-onboarding}/ src/components/helium_onboarding
|
||||
chmod +rw -R src/components/helium_onboarding
|
||||
cp -r ${ublock_src}/ src/third_party/ublock
|
||||
chmod +rw -R src/third_party/ublock
|
||||
cp -r ${search-engine-data}/. src/third_party/search_engines_data/resources_internal
|
||||
chmod +rw -R src/third_party/search_engines_data/resources_internal
|
||||
'';
|
||||
postPatch = base.postPatch + ''
|
||||
"${helium}/utils/name_substitution.py" --sub -t .
|
||||
"${helium}/utils/helium_version.py" --tree "${helium}" --chromium-tree .
|
||||
cp --no-preserve=mode,ownership -r "${helium}/resources" "$TMPDIR/helium-resources"
|
||||
"${helium}/utils/generate_resources.py" "${helium}/resources/generate_resources.txt" "$TMPDIR/helium-resources"
|
||||
"${helium}/utils/replace_resources.py" "${helium}/resources/helium_resources.txt" "$TMPDIR/helium-resources" .
|
||||
'';
|
||||
name = "helium-browser";
|
||||
packageName = "helium";
|
||||
buildTargets = [
|
||||
"run_mksnapshot_default"
|
||||
"chrome_sandbox"
|
||||
"chrome"
|
||||
];
|
||||
|
||||
outputs = [
|
||||
"out"
|
||||
"sandbox"
|
||||
];
|
||||
|
||||
sandboxExecutableName = "__chromium-suid-sandbox";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p "$libExecPath"
|
||||
cp -v "$buildPath/"*.so "$buildPath/"*.pak "$buildPath/"*.bin "$libExecPath/"
|
||||
cp -v "$buildPath/libvulkan.so.1" "$libExecPath/"
|
||||
cp -v "$buildPath/vk_swiftshader_icd.json" "$libExecPath/"
|
||||
cp -v "$buildPath/icudtl.dat" "$libExecPath/"
|
||||
cp -vLR "$buildPath/locales" "$buildPath/resources" "$libExecPath/"
|
||||
cp -v "$buildPath/chrome_crashpad_handler" "$libExecPath/"
|
||||
cp -v "$buildPath/chrome" "$libExecPath/$packageName"
|
||||
|
||||
# Swiftshader
|
||||
# See https://stackoverflow.com/a/4264351/263061 for the find invocation.
|
||||
if [ -n "$(find "$buildPath/swiftshader/" -maxdepth 1 -name '*.so' -print -quit)" ]; then
|
||||
echo "Swiftshader files found; installing"
|
||||
mkdir -p "$libExecPath/swiftshader"
|
||||
cp -v "$buildPath/swiftshader/"*.so "$libExecPath/swiftshader/"
|
||||
else
|
||||
echo "Swiftshader files not found"
|
||||
fi
|
||||
|
||||
mkdir -p "$sandbox/bin"
|
||||
cp -v "$buildPath/chrome_sandbox" "$sandbox/bin/${sandboxExecutableName}"
|
||||
|
||||
mkdir -vp "$out/share/man/man1"
|
||||
cp -v "$buildPath/chrome.1" "$out/share/man/man1/$packageName.1"
|
||||
|
||||
for icon_file in chrome/app/theme/chromium/product_logo_*[0-9].png; do
|
||||
num_and_suffix="''${icon_file##*logo_}"
|
||||
icon_size="''${num_and_suffix%.*}"
|
||||
expr "$icon_size" : "^[0-9][0-9]*$" || continue
|
||||
logo_output_prefix="$out/share/icons/hicolor"
|
||||
logo_output_path="$logo_output_prefix/''${icon_size}x''${icon_size}/apps"
|
||||
mkdir -vp "$logo_output_path"
|
||||
cp -v "$icon_file" "$logo_output_path/$packageName.png"
|
||||
done
|
||||
|
||||
# Install Desktop Entry
|
||||
install -D chrome/installer/linux/common/desktop.template \
|
||||
$out/share/applications/helium-browser.desktop
|
||||
|
||||
substituteInPlace $out/share/applications/helium-browser.desktop \
|
||||
--replace "@@MENUNAME@@" "Helium" \
|
||||
--replace "@@PACKAGE@@" "helium" \
|
||||
--replace "Exec=/usr/bin/@@USR_BIN_SYMLINK_NAME@@" "Exec=helium"
|
||||
|
||||
# Append more mime types to the end
|
||||
sed -i '/^MimeType=/ s,$,x-scheme-handler/webcal;x-scheme-handler/mailto;x-scheme-handler/about;x-scheme-handler/unknown,' \
|
||||
$out/share/applications/helium-browser.desktop
|
||||
|
||||
# See https://github.com/NixOS/nixpkgs/issues/12433
|
||||
sed -i \
|
||||
-e '/\[Desktop Entry\]/a\' \
|
||||
-e 'StartupWMClass=helium-browser' \
|
||||
$out/share/applications/helium-browser.desktop
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
inherit sandboxExecutableName;
|
||||
inherit upstream-info chromiumVersionAtLeast;
|
||||
};
|
||||
|
||||
requiredSystemFeatures = [ "big-parallel" ];
|
||||
|
||||
}
|
||||
)
|
||||
)
|
||||
290
pkgs/by-name/he/helium-browser/update.mjs
Executable file
290
pkgs/by-name/he/helium-browser/update.mjs
Executable file
@@ -0,0 +1,290 @@
|
||||
#! /usr/bin/env nix-shell
|
||||
/*
|
||||
#! nix-shell -i zx -p zx
|
||||
*/
|
||||
|
||||
console.log(process.cwd())
|
||||
|
||||
const custompkgs = (await $`git rev-parse --show-toplevel`).stdout.trim()
|
||||
const $custompkgs = $({
|
||||
cwd:custompkgs
|
||||
})
|
||||
const nixpkgs = "<nixpkgs>"
|
||||
|
||||
const dummy_hash = 'sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA='
|
||||
|
||||
const lockfile_file = './info.json'
|
||||
const lockfile_initial = fs.readJsonSync(lockfile_file)
|
||||
function flush_to_file() {
|
||||
fs.writeJsonSync(lockfile_file, lockfile, { spaces: 2 })
|
||||
}
|
||||
const flush_to_file_proxy = {
|
||||
get(obj, prop) {
|
||||
const value = obj[prop]
|
||||
return typeof value == 'object' ? new Proxy(value, flush_to_file_proxy) : value
|
||||
},
|
||||
|
||||
set(obj, prop, value) {
|
||||
obj[prop] = value
|
||||
flush_to_file()
|
||||
return true
|
||||
},
|
||||
}
|
||||
const lockfile = new Proxy(structuredClone(lockfile_initial), flush_to_file_proxy)
|
||||
const ungoogled_rev = argv['ungoogled-chromium-rev']
|
||||
|
||||
for (const attr_path of Object.keys(lockfile)) {
|
||||
const ungoogled = attr_path === 'ungoogled-chromium'
|
||||
|
||||
if (!argv[attr_path] && !(ungoogled && ungoogled_rev)) {
|
||||
console.log(`[${attr_path}] Skipping ${attr_path}. Pass --${attr_path} as argument to update.`)
|
||||
continue
|
||||
}
|
||||
|
||||
const version_nixpkgs = !ungoogled ? lockfile[attr_path].version : lockfile[attr_path].deps['ungoogled-patches'].rev
|
||||
const version_upstream = !ungoogled ? await get_latest_chromium_release('linux') :
|
||||
ungoogled_rev ?? await get_latest_ungoogled_release()
|
||||
|
||||
console.log(`[${attr_path}] ${chalk.red(version_nixpkgs)} (nixpkgs)`)
|
||||
console.log(`[${attr_path}] ${chalk.green(version_upstream)} (upstream)`)
|
||||
|
||||
if (ungoogled_rev || version_greater_than(version_upstream, version_nixpkgs)) {
|
||||
console.log(`[${attr_path}] ${chalk.green(version_upstream)} from upstream is newer than our ${chalk.red(version_nixpkgs)}...`)
|
||||
|
||||
let ungoogled_patches = ungoogled ? await fetch_ungoogled(version_upstream) : undefined
|
||||
|
||||
// For ungoogled-chromium we need to remove the patch revision (e.g. 130.0.6723.116-1 -> 130.0.6723.116)
|
||||
// by just using the chromium_version.txt content from the patches checkout (to also work with commit revs).
|
||||
const version_chromium = ungoogled_patches?.chromium_version ?? version_upstream
|
||||
|
||||
const chromium_rev = await chromium_resolve_tag_to_rev(version_chromium)
|
||||
|
||||
lockfile[attr_path] = {
|
||||
version: version_chromium,
|
||||
chromedriver: !ungoogled ? await fetch_chromedriver_binaries(await get_latest_chromium_release('mac')) : undefined,
|
||||
deps: {
|
||||
depot_tools: {},
|
||||
gn: await fetch_gn(chromium_rev, lockfile_initial[attr_path].deps.gn),
|
||||
'ungoogled-patches': !ungoogled ? undefined : {
|
||||
rev: ungoogled_patches.rev,
|
||||
hash: ungoogled_patches.hash,
|
||||
},
|
||||
npmHash: dummy_hash,
|
||||
},
|
||||
DEPS: {},
|
||||
}
|
||||
|
||||
const depot_tools = await fetch_depot_tools(chromium_rev, lockfile_initial[attr_path].deps.depot_tools)
|
||||
lockfile[attr_path].deps.depot_tools = {
|
||||
rev: depot_tools.rev,
|
||||
hash: depot_tools.hash,
|
||||
}
|
||||
|
||||
// DEPS update loop
|
||||
lockfile[attr_path].DEPS = await resolve_DEPS(depot_tools.out, chromium_rev)
|
||||
for (const [path, value] of Object.entries(lockfile[attr_path].DEPS)) {
|
||||
delete value.fetcher
|
||||
delete value.postFetch
|
||||
|
||||
if (value.url === 'https://chromium.googlesource.com/chromium/src.git') {
|
||||
value.recompress = true
|
||||
}
|
||||
|
||||
const cache_hit = (() => {
|
||||
for (const attr_path in lockfile_initial) {
|
||||
const cache = lockfile_initial[attr_path].DEPS[path]
|
||||
const hits_cache =
|
||||
cache !== undefined &&
|
||||
value.url === cache.url &&
|
||||
value.rev === cache.rev &&
|
||||
value.recompress === cache.recompress &&
|
||||
cache.hash !== undefined &&
|
||||
cache.hash !== '' &&
|
||||
cache.hash !== dummy_hash
|
||||
|
||||
if (hits_cache) {
|
||||
cache.attr_path = attr_path
|
||||
return cache;
|
||||
}
|
||||
}
|
||||
})();
|
||||
|
||||
if (cache_hit) {
|
||||
console.log(`[${chalk.green(path)}] Reusing hash from previous info.json for ${cache_hit.url}@${cache_hit.rev} from ${cache_hit.attr_path}`)
|
||||
value.hash = cache_hit.hash
|
||||
continue
|
||||
}
|
||||
|
||||
console.log(`[${chalk.red(path)}] FOD prefetching ${value.url}@${value.rev}...`)
|
||||
// value.hash = await prefetch_FOD('./package.nix', '-A', `${attr_path}.browser.passthru.chromiumDeps."${path}"`)
|
||||
value.hash = await prefetch_flake_FOD(`.#helium-browser.browser.passthru.chromiumDeps."${path}"`)
|
||||
// console.log(`[${chalk.green(path)}] FOD prefetching successful`)
|
||||
}
|
||||
|
||||
// lockfile[attr_path].deps.npmHash = await prefetch_FOD('./package.nix', '-A', `${attr_path}.browser.passthru.npmDeps`)
|
||||
lockfile[attr_path].deps.npmHash = await prefetch_flake_FOD(`.#helium-browser.browser.passthru.npmDeps`)
|
||||
|
||||
console.log(chalk.green(`[${attr_path}] Done updating ${attr_path} from ${version_nixpkgs} to ${version_upstream}!`))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
async function fetch_gn(chromium_rev, gn_previous) {
|
||||
const DEPS_file = await get_gitiles_file('https://chromium.googlesource.com/chromium/src', chromium_rev, 'DEPS')
|
||||
const { rev } = /^\s+'gn_version': 'git_revision:(?<rev>.+)',$/m.exec(DEPS_file).groups
|
||||
|
||||
const cache_hit = rev === gn_previous.rev;
|
||||
if (cache_hit) {
|
||||
return gn_previous
|
||||
}
|
||||
|
||||
const commit_date = await get_gitiles_commit_date('https://gn.googlesource.com/gn', rev)
|
||||
const version = `0-unstable-${commit_date}`
|
||||
|
||||
const expr = [`(import ${nixpkgs} {}).gn.override { version = "${version}"; rev = "${rev}"; hash = ""; }`]
|
||||
const derivation = await $`nix-instantiate --expr ${expr}`
|
||||
|
||||
return {
|
||||
version,
|
||||
rev,
|
||||
hash: await prefetch_FOD(derivation),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
async function get_gitiles_commit_date(base_url, rev) {
|
||||
const url = `${base_url}/+/${rev}?format=json`
|
||||
const response = await (await fetch(url)).text()
|
||||
const json = JSON.parse(response.replace(`)]}'\n`, ''))
|
||||
|
||||
const date = new Date(json.committer.time)
|
||||
return date.toISOString().split("T")[0]
|
||||
}
|
||||
|
||||
|
||||
async function fetch_chromedriver_binaries(version) {
|
||||
// https://developer.chrome.com/docs/chromedriver/downloads/version-selection
|
||||
const prefetch = async (url) => {
|
||||
const expr = [`(import ${nixpkgs} {}).fetchzip { url = "${url}"; hash = ""; }`]
|
||||
const derivation = await $`nix-instantiate --expr ${expr}`
|
||||
return await prefetch_FOD(derivation)
|
||||
}
|
||||
|
||||
// if the URL ever changes, the URLs in the chromedriver derivations need updating as well!
|
||||
const url = (platform) => `https://storage.googleapis.com/chrome-for-testing-public/${version}/${platform}/chromedriver-${platform}.zip`
|
||||
return {
|
||||
version,
|
||||
hash_darwin: await prefetch(url('mac-x64')),
|
||||
hash_darwin_aarch64: await prefetch(url('mac-arm64')),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
async function chromium_resolve_tag_to_rev(tag) {
|
||||
const url = `https://chromium.googlesource.com/chromium/src/+/refs/tags/${tag}?format=json`
|
||||
const response = await (await fetch(url)).text()
|
||||
const json = JSON.parse(response.replace(`)]}'\n`, ''))
|
||||
return json.commit
|
||||
}
|
||||
|
||||
|
||||
async function resolve_DEPS(depot_tools_checkout, chromium_rev) {
|
||||
const { stdout } = await $`./depot_tools.py ${depot_tools_checkout} ${chromium_rev}`
|
||||
const deps = JSON.parse(stdout)
|
||||
return Object.fromEntries(Object.entries(deps).map(([k, { url, rev, hash }]) => [k, { url, rev, hash }]))
|
||||
}
|
||||
|
||||
|
||||
async function get_latest_chromium_release(platform) {
|
||||
const url = `https://versionhistory.googleapis.com/v1/chrome/platforms/${platform}/channels/stable/versions/all/releases?` + new URLSearchParams({
|
||||
order_by: 'version desc',
|
||||
filter: 'endtime=none,fraction>=0.5'
|
||||
})
|
||||
|
||||
const response = await (await fetch(url)).json()
|
||||
return response.releases[0].version
|
||||
}
|
||||
|
||||
|
||||
async function get_latest_ungoogled_release() {
|
||||
const ungoogled_tags = await (await fetch('https://api.github.com/repos/imputnet/helium/tags')).json()
|
||||
// console.log(ungoogled_tags)
|
||||
// const chromium_releases = await (await fetch('https://versionhistory.googleapis.com/v1/chrome/platforms/linux/channels/stable/versions/all/releases')).json()
|
||||
// const chromium_release_map = chromium_releases.releases.map((x) => x.version)
|
||||
// return "0.5.2" // TODO: figure out how to actually properly do this stuff
|
||||
return ungoogled_tags[0].name
|
||||
}
|
||||
|
||||
|
||||
async function fetch_ungoogled(rev) {
|
||||
const expr = (hash) => [`(import ${nixpkgs} {}).fetchFromGitHub { owner = "imputnet"; repo = "helium"; rev = "${rev}"; hash = "${hash}"; }`]
|
||||
const hash = await prefetch_FOD('--expr', expr(''))
|
||||
|
||||
const checkout = await $`nix-build --expr ${expr(hash)}`
|
||||
const checkout_path = checkout.stdout.trim()
|
||||
|
||||
await fs.copy(path.join(checkout_path, 'flags.gn'), './ungoogled-flags.toml')
|
||||
|
||||
const chromium_version = (await fs.readFile(path.join(checkout_path, 'chromium_version.txt'))).toString().trim()
|
||||
|
||||
console.log(`[ungoogled-chromium] ${chalk.green(rev)} patch revision resolves to chromium version ${chalk.green(chromium_version)}`)
|
||||
|
||||
return {
|
||||
rev,
|
||||
hash,
|
||||
chromium_version,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function version_greater_than(greater, than) {
|
||||
return greater.localeCompare(than, undefined, { numeric: true, sensitivity: 'base' }) === 1
|
||||
}
|
||||
|
||||
|
||||
async function get_gitiles_file(repo, rev, path) {
|
||||
const base64 = await (await fetch(`${repo}/+/${rev}/${path}?format=TEXT`)).text()
|
||||
return Buffer.from(base64, 'base64').toString('utf-8')
|
||||
}
|
||||
|
||||
|
||||
async function fetch_depot_tools(chromium_rev, depot_tools_previous) {
|
||||
const depot_tools_rev = await get_gitiles_file('https://chromium.googlesource.com/chromium/src', chromium_rev, 'third_party/depot_tools')
|
||||
const hash = depot_tools_rev === depot_tools_previous.rev ? depot_tools_previous.hash : ''
|
||||
return await prefetch_gitiles('https://chromium.googlesource.com/chromium/tools/depot_tools', depot_tools_rev, hash)
|
||||
}
|
||||
|
||||
|
||||
async function prefetch_gitiles(url, rev, hash = '') {
|
||||
const expr = () => [`(import ${nixpkgs} {}).fetchFromGitiles { url = "${url}"; rev = "${rev}"; hash = "${hash}"; }`]
|
||||
|
||||
if (hash === '') {
|
||||
hash = await prefetch_FOD('--expr', expr())
|
||||
}
|
||||
|
||||
const { stdout } = await $`nix-build --expr ${expr()}`
|
||||
return {
|
||||
url,
|
||||
rev,
|
||||
hash,
|
||||
out: stdout.trim(),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
async function prefetch_FOD(...args) {
|
||||
const { stderr } = await $`nix-build ${args}`.nothrow()
|
||||
const hash = /\s+got:\s+(?<hash>.+)$/m.exec(stderr)?.groups?.hash
|
||||
if (hash == undefined) {
|
||||
throw new Error(chalk.red('Expected to find hash in nix-build stderr output:') + stderr)
|
||||
}
|
||||
return hash
|
||||
}
|
||||
async function prefetch_flake_FOD(...args) {
|
||||
const { stderr } = await $custompkgs`nix build ${args}`.nothrow()
|
||||
const hash = /\s+got:\s+(?<hash>.+)$/m.exec(stderr)?.groups?.hash
|
||||
if (hash == undefined) {
|
||||
throw new Error(chalk.red('Expected to find hash in nix build stderr output:') + stderr)
|
||||
}
|
||||
return hash
|
||||
}
|
||||
@@ -20,24 +20,28 @@ stdenv.mkDerivation (
|
||||
"qcadsp8380.mbn"
|
||||
"qccdsp8380.mbn"
|
||||
"qcdxkmsuc8380.mbn"
|
||||
"bdwlan01.e0b"
|
||||
];
|
||||
|
||||
in
|
||||
{
|
||||
|
||||
rec {
|
||||
name = "x1e80100-firmware";
|
||||
version = "26100_25.101.12926.0";
|
||||
src = fetchurl {
|
||||
url = "https://download.microsoft.com/download/b7ca2c3f-d320-4795-be0f-529a0117abb4/SurfaceLaptop7_ARM_Win11_26100_25.061.7304.0.msi";
|
||||
sha256 = "sha256-x75NsuZZr64XfGhjghIoiymdhhb/rM0iaV9EohwPbrs=";
|
||||
# https://www.microsoft.com/en-us/download/details.aspx?id=106120
|
||||
url = "https://download.microsoft.com/download/b7ca2c3f-d320-4795-be0f-529a0117abb4/SurfaceLaptop7_ARM_Win11_${version}.msi";
|
||||
hash = "sha256-4LVqkA4YwGrAh3gNSUQ5G2ahwBoj/5QvyFqvNgznvX4=";
|
||||
};
|
||||
nativeBuildInputs = [
|
||||
msitools
|
||||
tree
|
||||
];
|
||||
unpackPhase = ''
|
||||
msiextract -C . $src
|
||||
msiextract -C . "$src"
|
||||
'';
|
||||
buildPhase = ''
|
||||
mkdir -p $out/lib/firmware/qcom/x1e80100/microsoft/Romulus
|
||||
mkdir -p "$out/lib/firmware/qcom/x1e80100/microsoft/Romulus"
|
||||
for file in ${lib.concatStringsSep " " fw_files}; do
|
||||
echo -e "\tSearching for $file..."
|
||||
fw_path=$(find . -type f -name "$file" -print | head -n 1)
|
||||
@@ -48,7 +52,7 @@ stdenv.mkDerivation (
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
cp $out/lib/firmware/qcom/x1e80100/microsoft/Romulus/qcdxkmsuc8380.mbn $out/lib/firmware/qcom/x1e80100/microsoft/qcdxkmsuc8380.mbn
|
||||
cp "$out/lib/firmware/qcom/x1e80100/microsoft/Romulus/qcdxkmsuc8380.mbn" "$out/lib/firmware/qcom/x1e80100/microsoft/qcdxkmsuc8380.mbn"
|
||||
'';
|
||||
meta = {
|
||||
platforms = [ "aarch64-linux" ];
|
||||
|
||||
12
pkgs/by-name/x1/x1e80100-linux-firmware/firmware.patch
Normal file
12
pkgs/by-name/x1/x1e80100-linux-firmware/firmware.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
--- a/board-2.json 2025-07-24 19:46:44.712406478 +0000
|
||||
+++ b/board-2.json 2025-07-24 19:46:42.655405480 +0000
|
||||
@@ -27,7 +27,8 @@
|
||||
},
|
||||
{
|
||||
"names": [
|
||||
- "bus=pci,vendor=17cb,device=1107,subsystem-vendor=17cb,subsystem-device=3378,qmi-chip-id=2,qmi-board-id=255"
|
||||
+ "bus=pci,vendor=17cb,device=1107,subsystem-vendor=17cb,subsystem-device=3378,qmi-chip-id=2,qmi-board-id=255",
|
||||
+ "bus=pci,vendor=17cb,device=1107,subsystem-vendor=17cb,subsystem-device=1107,qmi-chip-id=2,qmi-board-id=255"
|
||||
],
|
||||
"data": "bus=pci,vendor=17cb,device=1107,subsystem-vendor=17cb,subsystem-device=3378,qmi-chip-id=2,qmi-board-id=255.bin"
|
||||
},
|
||||
11
pkgs/by-name/x1/x1e80100-linux-firmware/package.nix
Normal file
11
pkgs/by-name/x1/x1e80100-linux-firmware/package.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{ ath-tools, linux-firmware }:
|
||||
linux-firmware.overrideAttrs (final: {
|
||||
postInstall = ''
|
||||
mkdir temp
|
||||
cd temp || exit
|
||||
${ath-tools.ath12k-tools}/bin/ath12k-bdencoder -e $out/lib/firmware/ath12k/WCN7850/hw2.0/board-2.bin
|
||||
patch -p1 < ${./firmware.patch}
|
||||
${ath-tools.ath12k-tools}/bin/ath12k-bdencoder -c board-2.json
|
||||
cp board-2.bin $out/lib/firmware/ath12k/WCN7850/hw2.0/board-2.bin
|
||||
'';
|
||||
})
|
||||
Reference in New Issue
Block a user