diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2024-06-20 14:25:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-20 14:25:13 +0200 |
commit | 47f47fe6b0f8a14513cc5203eb760e627ba77a60 (patch) | |
tree | d96caeeec13828a7ecc70290904b15dd2eb141b4 /pkgs | |
parent | 3d37622cffe5ee2f30a624087830374af8fe33f8 (diff) | |
parent | ffc1e44c32d7be18dc918f83dee1b7ec84485a2b (diff) |
Merge pull request #319258 from Guanran928/arkenfox
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/by-name/ar/arkenfox-userjs/package.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/by-name/ar/arkenfox-userjs/package.nix b/pkgs/by-name/ar/arkenfox-userjs/package.nix new file mode 100644 index 0000000000000..04ac83fce1a66 --- /dev/null +++ b/pkgs/by-name/ar/arkenfox-userjs/package.nix @@ -0,0 +1,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; + }; +}) |