diff options
author | Ali Rizvi | 2024-06-25 16:31:30 -0400 |
---|---|---|
committer | Ali Rizvi | 2024-07-04 17:15:08 -0400 |
commit | 65c86d9d3380a50e94e1439648e6ac2bff04d570 (patch) | |
tree | 0e96564a5dc10076d0941a01aaebc2ec66681a6e /pkgs/tools/networking | |
parent | c75c11c53dae0e006bf83fbbf6b5c025bc35fb04 (diff) |
stevenblack-blocklist: `stdenvNoCC`, `updateScript`
Diffstat (limited to 'pkgs/tools/networking')
-rw-r--r-- | pkgs/tools/networking/stevenblack-blocklist/default.nix | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/pkgs/tools/networking/stevenblack-blocklist/default.nix b/pkgs/tools/networking/stevenblack-blocklist/default.nix index 07c6d33ac136..45496f67f8a6 100644 --- a/pkgs/tools/networking/stevenblack-blocklist/default.nix +++ b/pkgs/tools/networking/stevenblack-blocklist/default.nix @@ -1,15 +1,19 @@ -{ lib, fetchFromGitHub }: - -let +{ + lib, + stdenvNoCC, + fetchFromGitHub, + nix-update-script, +}: +stdenvNoCC.mkDerivation (finalAttrs: { + pname = "stevenblack-blocklist"; version = "3.14.84"; -in -fetchFromGitHub { - name = "stevenblack-blocklist-${version}"; - owner = "StevenBlack"; - repo = "hosts"; - rev = version; - hash = "sha256-tahf6mdtmZofwMZfMsuDAqCR/V1qZt6vV+o6t4YTKG0="; + src = fetchFromGitHub { + owner = "StevenBlack"; + repo = "hosts"; + rev = finalAttrs.version; + hash = "sha256-tahf6mdtmZofwMZfMsuDAqCR/V1qZt6vV+o6t4YTKG0="; + }; meta = with lib; { description = "Unified hosts file with base extensions"; @@ -21,4 +25,4 @@ fetchFromGitHub { frontear ]; }; -} +}) |