Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

76 lines
1.5 KiB
Nix

{
# Basic
lib,
melpaBuild,
fetchFromGitHub,
# Dependencies
aria2,
# JavaScript dependency
nodejs,
fetchNpmDeps,
npmHooks,
# Updater
nix-update-script,
}:
melpaBuild (finalAttrs: {
pname = "eaf-browser";
version = "0-unstable-2025-06-14";
src = fetchFromGitHub {
owner = "emacs-eaf";
repo = "eaf-browser";
rev = "120967319132f361a2b27f89ee54d1984aa23eaf";
hash = "sha256-DsPrctB1bSGBPQLI2LsnSUtqnzWpZRrWrVZM8lS9fms=";
};
env.npmDeps = fetchNpmDeps {
name = "${finalAttrs.pname}-npm-deps";
inherit (finalAttrs) src;
hash = "sha256-UfQL7rN47nI1FyhgBlzH4QtyVCn0wGV3Rv5Y+aidRNE=";
};
nativeBuildInputs = [
nodejs
npmHooks.npmConfigHook
];
postPatch = ''
substituteInPlace buffer.py \
--replace-fail "aria2_args = [\"aria2c\"]" \
"aria2_args = [\"${lib.getExe aria2}\"]"
'';
files = ''
("*.el"
"*.py"
"easylist.txt"
"aria2-ng")
'';
postInstall = ''
LISPDIR=$out/share/emacs/site-lisp/elpa/${finalAttrs.ename}-${finalAttrs.melpaVersion}
touch node_modules/.nosearch
cp -r node_modules $LISPDIR/
'';
passthru = {
updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };
eafPythonDeps =
ps: with ps; [
pysocks
];
};
meta = {
description = "Modern browser in Emacs";
homepage = "https://github.com/emacs-eaf/eaf-browser";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [
thattemperature
];
};
})