4 , gsettings-desktop-schemas
17 stdenv.mkDerivation rec {
18 pname = "popcorntime";
22 url = "https://github.com/popcorn-official/popcorn-desktop/releases/download/v${version}/Popcorn-Time-${version}-linux64.zip";
23 sha256 = "sha256-cbKL5bgweZD/yfi/8KS0L7Raha8PTHqIm4qSPFidjUc=";
36 gsettings-desktop-schemas
48 "--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ gcc-unwrapped.lib gtk3 udev ]}"
49 "--prefix PATH : ${lib.makeBinPath [ stdenv.cc ]}"
52 desktopItem = makeDesktopItem {
56 comment = meta.description;
57 genericName = meta.description;
59 desktopName = "Popcorn-Time";
60 categories = [ "Video" "AudioVideo" ];
63 # Extract and copy executable in $out/bin
65 mkdir -p $out/share/applications $out/bin $out/opt/bin $out/share/icons/hicolor/scalable/apps/
66 # we can't unzip it in $out/lib, because nw.js will start with
67 # an empty screen. Therefore it will be unzipped in a non-typical
68 # folder and symlinked.
69 unzip -q $src -d $out/opt/popcorntime
71 ln -s $out/opt/popcorntime/Popcorn-Time $out/bin/popcorntime
73 ln -s $out/opt/popcorntime/src/app/images/icon.png $out/share/icons/hicolor/scalable/apps/popcorntime.png
75 ln -s ${desktopItem}/share/applications/popcorntime.desktop $out/share/applications/popcorntime.desktop
78 # GSETTINGS_SCHEMAS_PATH is not set in installPhase
80 wrapProgram $out/bin/popcorntime \
81 ''${makeWrapperArgs[@]} \
82 ''${gappsWrapperArgs[@]}
86 homepage = "https://github.com/popcorn-official/popcorn-desktop";
87 description = "An application that streams movies and TV shows from torrents";
88 platforms = [ "x86_64-linux" ];
89 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
90 license = lib.licenses.gpl3;
91 maintainers = with maintainers; [ onny ];