-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.nix
More file actions
38 lines (31 loc) · 956 Bytes
/
package.nix
File metadata and controls
38 lines (31 loc) · 956 Bytes
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
# TODO: Build from source and upstream
{
lib,
stdenvNoCC,
fetchurl,
_7zz,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "wblock";
version = "2.0.0";
src = fetchurl {
url = "https://github.com/0xCUB3/wBlock/releases/download/${finalAttrs.version}/wBlock.dmg";
hash = "sha256-emcEURH/G6Laph4/P4vGJ+Ht6QvOjijrDh1qgstGMVo=";
};
# Use 7zz to work around APFS: https://discourse.nixos.org/t/help-with-error-only-hfs-file-systems-are-supported-on-ventura/25873/9
nativeBuildInputs = [_7zz];
sourceRoot = ".";
installPhase = ''
runHook preInstall
mkdir -p "$out/Applications"
cp -r *.app "$out/Applications"
runHook postInstall
'';
meta = with lib; {
description = "Next-generation ad blocker for Safari";
homepage = "https://github.com/0xCUB3/wBlock";
license = lib.licenses.gpl3Only;
platforms = platforms.darwin;
sourceProvenance = with sourceTypes; [binaryNativeCode];
};
})