blob: 04ac83fce1a66d175cc400d1194cecf961aeb783 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{
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;
};
})
|