Skip to content

Commit 438c25a

Browse files
committed
Chromium from overlay
1 parent 971eb3c commit 438c25a

5 files changed

Lines changed: 43 additions & 1 deletion

File tree

home/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
slack
7373
soundsource
7474
the-unarchiver
75+
ungoogled-chromium
7576
whatsapp-for-mac
7677
zoom-us
7778
];

lib/hosts.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@
102102
{
103103
nixpkgs.overlays = [
104104
(import ./../overlays/github-desktop.nix)
105+
(import ./../overlays/ungoogled-chromium.nix)
105106
(import ./../overlays/whatsapp-for-mac.nix)
106107
];
107108
}

modules/darwin/default.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
# TODO: casks marked as auto_updates should be set as greedy with auto update setting disabled
3737
otherApps = [
3838
"craft" # auto_updates
39-
"eloston-chromium"
4039
# "fastscripts" # TODO: Use pre-v3
4140
"legcord"
4241
#"mochi"

overlays/ungoogled-chromium.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
self: super: {
2+
ungoogled-chromium = super.callPackage ./../packages/ungoogled-chromium/package.nix {};
3+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# TODO: Build from source and upstream
2+
{
3+
lib,
4+
stdenvNoCC,
5+
fetchurl,
6+
undmg,
7+
}:
8+
stdenvNoCC.mkDerivation (finalAttrs: {
9+
pname = "ungoogled-chromium";
10+
version = "136.0.7103.113-1.1";
11+
12+
src = fetchurl {
13+
url = "https://github.com/ungoogled-software/ungoogled-chromium-macos/releases/download/${finalAttrs.version}/ungoogled-chromium_${finalAttrs.version}_arm64-macos.dmg";
14+
hash = "sha256-llaXl2jEegL0DyUBHDW15d8jNXr+kF+TJkrBONIlXCU=";
15+
};
16+
17+
nativeBuildInputs = [undmg];
18+
19+
sourceRoot = ".";
20+
21+
installPhase = ''
22+
runHook preInstall
23+
24+
mkdir -p "$out/Applications"
25+
cp -r *.app "$out/Applications"
26+
27+
runHook postInstall
28+
'';
29+
30+
meta = with lib; {
31+
description = "Open source web browser from Google with dependencies on Google web services removed";
32+
homepage = "https://github.com/ungoogled-software/ungoogled-chromium-macos";
33+
license = lib.licenses.bsd3;
34+
mainProgram = "chromium";
35+
platforms = platforms.darwin;
36+
sourceProvenance = with sourceTypes; [binaryNativeCode];
37+
};
38+
})

0 commit comments

Comments
 (0)