feat(packages): add librewolf for macOS

This commit is contained in:
winston 2023-02-03 00:04:08 +01:00
parent 531e941f58
commit 6c9d9c445f
Signed by: winston
GPG key ID: 3786770EDBC2B481

View file

@ -0,0 +1,28 @@
{ stdenv, fetchurl, lib, undmg }:
stdenv.mkDerivation rec {
name = "librewolf";
version = "109.0-1";
url = "e0b46cbfb55504d33fd75b328ef3f5c7";
src = fetchurl {
url = "https://gitlab.com/librewolf-community/browser/macos/uploads/${url}/librewolf-${version}.en-US.mac.aarch64.dmg";
sha256 = "5a60bc2b2d6fc6cbdfae8797178695b7139a0006869e5dbe214078a4d058f1f0";
};
buildInputs = [ undmg ];
sourceRoot = ".";
phases = [ "unpackPhase" "installPhase" ];
installPhase = ''
mkdir -p "$out/Applications"
cp -r Librewolf.app "$out/Applications/Librewolf.app"
'';
meta = with lib; {
description = "A custom version of Firefox, focused on privacy, security and freedom.";
homepage = "https://librewolf.net/";
maintainers = [ maintainers.nekowinston ];
platforms = platforms.darwin;
};
}