Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
945 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
fetchurl,
stdenvNoCC,
nix-update-script,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "arkenfox-userjs";
version = "140.0";
src = fetchurl {
url = "https://raw.githubusercontent.com/arkenfox/user.js/${finalAttrs.version}/user.js";
hash = "sha256-/cz0dnQXKa3c/DqUTAEwBV0I9Tc3x6uzU6rtYijg3Zo=";
};
dontUnpack = true;
installPhase = ''
runHook preInstall
install -Dm644 $src $out/user.js
install -Dm644 $src $out/user.cfg
substituteInPlace $out/user.cfg \
--replace-fail "user_pref" "defaultPref"
runHook postInstall
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "Comprehensive user.js template for configuration and hardening";
homepage = "https://github.com/arkenfox/user.js";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
linsui
Guanran928
];
platforms = lib.platforms.all;
};
})