4 , gsettings-desktop-schemas
18 stdenv.mkDerivation rec {
19 pname = "popcorntime";
23 url = "https://github.com/popcorn-official/popcorn-desktop/releases/download/v${version}/Popcorn-Time-${version}-linux64.zip";
24 hash = "sha256-lCsIioR252GWP/+wNwkTw5PLSal/M9x6mlR/EKOd/hs=";
37 gsettings-desktop-schemas
49 "--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ gcc-unwrapped.lib gtk3 udev libGL ]}"
50 "--prefix PATH : ${lib.makeBinPath [ stdenv.cc ]}"
53 desktopItem = makeDesktopItem {
57 comment = meta.description;
58 genericName = meta.description;
60 desktopName = "Popcorn-Time";
61 categories = [ "Video" "AudioVideo" ];
64 # Extract and copy executable in $out/bin
66 mkdir -p $out/share/applications $out/bin $out/opt/bin $out/share/icons/hicolor/scalable/apps/
67 # we can't unzip it in $out/lib, because nw.js will start with
68 # an empty screen. Therefore it will be unzipped in a non-typical
69 # folder and symlinked.
70 unzip -q $src -d $out/opt/popcorntime
72 ln -s $out/opt/popcorntime/Popcorn-Time $out/bin/popcorntime
74 ln -s $out/opt/popcorntime/src/app/images/icon.png $out/share/icons/hicolor/scalable/apps/popcorntime.png
76 ln -s ${desktopItem}/share/applications/popcorntime.desktop $out/share/applications/popcorntime.desktop
79 # GSETTINGS_SCHEMAS_PATH is not set in installPhase
81 wrapProgram $out/bin/popcorntime \
82 ''${makeWrapperArgs[@]} \
83 ''${gappsWrapperArgs[@]}
87 homepage = "https://github.com/popcorn-official/popcorn-desktop";
88 description = "An application that streams movies and TV shows from torrents";
89 platforms = [ "x86_64-linux" ];
90 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
91 license = lib.licenses.gpl3;
92 maintainers = with maintainers; [ onny ];
93 mainProgram = "popcorntime";