bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
41 lines
947 B
Nix
41 lines
947 B
Nix
{
|
|
lib,
|
|
fetchurl,
|
|
stdenvNoCC,
|
|
nix-update-script,
|
|
}:
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "arkenfox-userjs";
|
|
version = "126.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://raw.githubusercontent.com/arkenfox/user.js/${finalAttrs.version}/user.js";
|
|
hash = "sha256-XRtG0iLKh8uqbeX7Rc2H6VJwZYJoNZPBlAfZEfrSCP4=";
|
|
};
|
|
|
|
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 = "A 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;
|
|
};
|
|
})
|