Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DRAFT] librewolf: init at 90.0.2 #132992

Closed
wants to merge 1 commit into from
Closed

[DRAFT] librewolf: init at 90.0.2 #132992

wants to merge 1 commit into from

Conversation

onny
Copy link
Contributor

@onny onny commented Aug 7, 2021

Motivation for this change

Packaging Librewolf, a privacy oriented Firefox fork, as requested in this issue #94918 .

I created a new package since I'm unsure about integrating this as a Firefox sub-package. There are no existing Firefox forks yet, just ESR, developer and beta builds. Also the Firefox packages seems to complicated for me. Maybe we could move duplicate code into a general Gecko-browsers meta package with a future rework.

This PR is a draft. I copied the Palemoon package and trying to integrate Librewolf patches + Firefox config into this.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • 21.11 Release Notes (or backporting 21.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@SuperSandro2000 SuperSandro2000 marked this pull request as draft August 7, 2021 10:02
Comment on lines +39 to +44
assert stdenv.cc.isGNU;
assert with lib.strings; (
versionAtLeast stdenv.cc.version "4.9"
&& !hasPrefix "6" stdenv.cc.version
&& versionOlder stdenv.cc.version "11"
);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use meta.broken for this kind of stuff.

Comment on lines +47 to +50
libPath = lib.makeLibraryPath [
ffmpeg
libpulseaudio
];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
libPath = lib.makeLibraryPath [
ffmpeg
libpulseaudio
];


preFixup = ''
gappsWrapperArgs+=(
--prefix LD_LIBRARY_PATH : "${libPath}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
--prefix LD_LIBRARY_PATH : "${libPath}"
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ ffmpeg libpulseaudio ]}"


# Remove unneeded SDK data from installation
# https://forum.palemoon.org/viewtopic.php?f=37&t=26796&p=214676#p214729
rm -rf $out/{include,share/idl,lib/palemoon-devel-${version}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
rm -rf $out/{include,share/idl,lib/palemoon-devel-${version}}
rm -r $out/{include,share/idl,lib/palemoon-devel-${version}}

Comment on lines +108 to +109
]
++ (with xorg; [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
]
++ (with xorg; [
] ++ (with xorg; [

gnum4
perl
pkg-config
python2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need to use python2?

@etircopyh
Copy link

I'd personally rather use firedragon. It seems to have more reasonable defaults. Surprised it hasn't been added to nixpkgs yet.

@TLATER TLATER mentioned this pull request Aug 31, 2021
18 tasks
@cheriimoya
Copy link
Contributor

i think this is done in #151439

@onny onny closed this Feb 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants