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

WIP lbry: init at 0.44.0 #85769

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
41 changes: 41 additions & 0 deletions pkgs/applications/video/lbry/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{ stdenv
, dpkg
, fetchurl
, atomEnv
, autoPatchelfHook
, libpulseaudio
, makeWrapper
, pulseaudio
, wrapGAppsHook
}:

stdenv.mkDerivation rec {
pname = "lbry";
version = "0.44.0";

src = fetchurl {
url = "https://github.com/lbryio/lbry-desktop/releases/download/v${version}/LBRY_${version}.deb";
sha256 = "0v3w6qi3lyalyaz9n8dpssgjkxjlwn30f7gc4b8fh8cpdkgdk6dp";
};

nativeBuildInputs = [
dpkg
autoPatchelfHook
makeWrapper
wrapGAppsHook
];

buildInputs = atomEnv.packages ++ [ libpulseaudio ];

unpackPhase = ''
dpkg -x $src /build
'';

installPhase = ''
mkdir -p $out/bin
mv usr/share $out/share
mv opt/LBRY $out/LBRY
makeWrapper $out/LBRY/lbry $out/bin/lbry \
--prefix LD_LIBRARY_PATH : ${libpulseaudio}/lib:${pulseaudio}/lib
'';
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I know it's WIP, but needs meta section. Don't forget to follow https://github.com/NixOS/nixpkgs/blob/master/.github/CONTRIBUTING.md

2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20379,6 +20379,8 @@ in

liferea = callPackage ../applications/networking/newsreaders/liferea { };

lbry = callPackage ../applications/video/lbry { };

lightworks = callPackage ../applications/video/lightworks {
portaudio = portaudio2014;
};
Expand Down