mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
librewolf-bin: init at 129.0.2.1
This commit is contained in:
parent
33b95d073c
commit
6d3fa00589
35
pkgs/by-name/li/librewolf-bin/package.nix
Normal file
35
pkgs/by-name/li/librewolf-bin/package.nix
Normal file
@ -0,0 +1,35 @@
|
||||
{
|
||||
lib,
|
||||
appimageTools,
|
||||
fetchurl,
|
||||
}:
|
||||
|
||||
let
|
||||
pname = "librewolf-bin";
|
||||
upstreamVersion = "129.0.2-1";
|
||||
version = lib.replaceStrings [ "-" ] [ "." ] upstreamVersion;
|
||||
src = fetchurl {
|
||||
url = "https://gitlab.com/api/v4/projects/24386000/packages/generic/librewolf/${upstreamVersion}/LibreWolf.x86_64.AppImage";
|
||||
hash = "sha256-h4SZnI2BwCSsLADYIxTXu82Jyst1hqYGHt54MnluLss=";
|
||||
};
|
||||
appimageContents = appimageTools.extract { inherit pname version src; };
|
||||
in
|
||||
appimageTools.wrapType2 {
|
||||
inherit pname version src;
|
||||
|
||||
extraInstallCommands = ''
|
||||
mv $out/bin/{${pname},librewolf}
|
||||
install -Dm444 ${appimageContents}/io.gitlab.LibreWolf.desktop -t $out/share/applications
|
||||
install -Dm444 ${appimageContents}/librewolf.png -t $out/share/pixmaps
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Fork of Firefox, focused on privacy, security and freedom (upstream AppImage release)";
|
||||
homepage = "https://librewolf.net";
|
||||
license = lib.licenses.mpl20;
|
||||
maintainers = with lib.maintainers; [ eclairevoyant ];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
mainProgram = "librewolf";
|
||||
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user