nixpkgs/pkgs/by-name/lb/lbry/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

51 lines
1.6 KiB
Nix
Raw Normal View History

2021-04-13 01:52:23 +00:00
{
lib,
fetchurl,
appimageTools,
}:
appimageTools.wrapAppImage rec {
2021-04-13 01:52:23 +00:00
pname = "lbry-desktop";
2024-01-08 20:41:23 +00:00
version = "0.53.9";
2021-04-13 01:52:23 +00:00
# Fetch from GitHub Releases and extract
src = appimageTools.extract {
inherit pname version;
2021-04-13 01:52:23 +00:00
src = fetchurl {
url = "https://github.com/lbryio/lbry-desktop/releases/download/v${version}/LBRY_${version}.AppImage";
# Gotten from latest-linux.yml
2024-01-08 20:41:23 +00:00
hash = "sha256-FkqIazE4eIEobYRBstXfPWh6MTCaNcCLk14yDGC4rRk=";
2021-04-13 01:52:23 +00:00
};
};
# At runtime, Lbry likes to have access to Ffmpeg
extraPkgs = pkgs: [ pkgs.ffmpeg ];
2021-04-13 01:52:23 +00:00
# General fixup
extraInstallCommands = ''
# Firstly, rename the executable to lbry for convinence
mv $out/bin/${pname} $out/bin/lbry
2021-04-13 01:52:23 +00:00
# Now, install assets such as the desktop file and icons
install -m 444 -D ${src}/lbry.desktop -t $out/share/applications
substituteInPlace $out/share/applications/lbry.desktop \
--replace 'Exec=AppRun' 'Exec=lbry'
2021-04-13 01:52:23 +00:00
cp -r ${src}/usr/share/icons $out/share
'';
meta = with lib; {
description = "Browser and wallet for LBRY, the decentralized, user-controlled content marketplace";
longDescription = ''
The LBRY app is a graphical browser for the decentralized content marketplace provided by the LBRY protocol.
It is essentially the lbry daemon bundled with a UI using Electron.
'';
license = licenses.mit;
homepage = "https://lbry.com/";
downloadPage = "https://lbry.com/get/";
changelog = "https://github.com/lbryio/lbry-desktop/blob/master/CHANGELOG.md";
maintainers = with maintainers; [ enderger ];
platforms = [ "x86_64-linux" ];
2023-11-27 01:17:53 +00:00
mainProgram = "lbry";
2021-04-13 01:52:23 +00:00
};
}