nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit a2f66a8553d2854f85b6b0ffd9bc7ecca14c155e
parent c866292242dbab85f8593bb978c562d675edc16d
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Wed,  1 Jul 2020 01:20:54 +0300

Add librewolf

Diffstat:
Apkgs/applications/librewolf/default.nix | 48++++++++++++++++++++++++++++++++++++++++++++++++
Mpkgs/default.nix | 1+
2 files changed, 49 insertions(+), 0 deletions(-)

diff --git a/pkgs/applications/librewolf/default.nix b/pkgs/applications/librewolf/default.nix @@ -0,0 +1,48 @@ +{ stdenv, fetchgit, fetchurl }: + +stdenv.mkDerivation rec { + pname = "librewolf"; + version = "78.0"; + + src = fetchgit { + url = "https://gitlab.com/librewolf-community/browser/macos"; + rev = "3fcf44663ff1fb4e180fb3cdb26620abe7284b53"; + sha256 = "0p517ixkgp3sl7b26mdjr9mwv6155xx8ah85fgpwqnpryr64xs3d"; + }; + + firefox = fetchurl { + url = "https://download-installer.cdn.mozilla.net/pub/firefox/releases/${version}/mac/en-US/Firefox%20${version}.dmg"; + sha256 = "17pl2hm04mvcn0r7s3am2y2xxj8aks2x6gsy1i6k3k0lk09sx839"; + name = "Firefox.dmg"; + }; + + postPatch = '' + substituteInPlace package.sh \ + --replace "codesign" "/usr/bin/codesign" \ + --replace "cp" "/bin/cp" \ + --replace "hdiutil" "/usr/bin/hdiutil" \ + --replace "out_dir=" "out_dir=. #" + ''; + + buildPhase = '' + # Use fresh FF dmgs for each build. + cp ${firefox} Firefox.dmg + ./package.sh Firefox.dmg + ''; + + installPhase = '' + /usr/bin/hdiutil mount -nobrowse -mountpoint librewolf-mnt LibreWolf.dmg + mkdir -p $out/Applications + cp -r ./librewolf-mnt/LibreWolf.app $out/Applications + /usr/bin/hdiutil unmount librewolf-mnt + ''; + + meta = with stdenv.lib; { + description = "A fork of Firefox, focused on privacy, security and freedom"; + homepage = "https://librewolf-community.gitlab.io/"; + license = licenses.mpl20; + maintainers = with maintainers; [ sikmir ]; + platforms = [ "x86_64-darwin" ]; + skip.ci = true; + }; +} diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -14,6 +14,7 @@ lib.makeScope newScope ( gpxsee = libsForQt5.callPackage ./applications/gpxsee { inherit sources; }; + librewolf = callPackage ./applications/librewolf {}; macpass = callPackage ./applications/macpass {}; mapsoft = callPackage ./applications/mapsoft {}; mapsoft2 = callPackage ./applications/mapsoft/2.nix {};