mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-01 02:23:54 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
51 lines
1.6 KiB
Nix
51 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
fetchurl,
|
|
appimageTools,
|
|
}:
|
|
|
|
appimageTools.wrapAppImage rec {
|
|
pname = "lbry-desktop";
|
|
version = "0.53.9";
|
|
|
|
# Fetch from GitHub Releases and extract
|
|
src = appimageTools.extract {
|
|
inherit pname version;
|
|
src = fetchurl {
|
|
url = "https://github.com/lbryio/lbry-desktop/releases/download/v${version}/LBRY_${version}.AppImage";
|
|
# Gotten from latest-linux.yml
|
|
hash = "sha256-FkqIazE4eIEobYRBstXfPWh6MTCaNcCLk14yDGC4rRk=";
|
|
};
|
|
};
|
|
|
|
# At runtime, Lbry likes to have access to Ffmpeg
|
|
extraPkgs = pkgs: [ pkgs.ffmpeg ];
|
|
|
|
# General fixup
|
|
extraInstallCommands = ''
|
|
# Firstly, rename the executable to lbry for convinence
|
|
mv $out/bin/${pname} $out/bin/lbry
|
|
|
|
# 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'
|
|
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" ];
|
|
mainProgram = "lbry";
|
|
};
|
|
}
|