git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #8423 from bobvanderlinden/popcorntime-bin

added popcorntime package

commit3ff2dfb7fa9c9ad8c06eac6199aa8443fbd6f003 authorDomen Kožar <domen@dev.si> dateSun 28 Jun 2015, 10:01 (11 years ago) parent90d041bbb10e48
2 files changed+45
pkgs/applications/video/popcorntime/default.nix+43 pkgs/top-level/all-packages.nix+2
pkgs/applications/video/popcorntime/default.nixnew file+43
@@ -0,0 +1,43 @@
1+{ stdenv, fetchurl, runCommand, makeWrapper, node_webkit_0_9
2+}:
3+
4+let
5+ version = "0.3.7.2";
6+
7+ srcs = {
8+ x86_64-linux = fetchurl {
9+ url = "https://get.popcorntime.io/build/Popcorn-Time-${version}-Linux64.tar.xz";
10+ sha256 = "0lm9k4fr73a9p00i3xj2ywa4wvjf9csadm0pcz8d6imwwq44sa8b";
11+ };
12+ i686-linux = fetchurl {
13+ url = "https://get.popcorntime.io/build/Popcorn-Time-${version}-Linux32.tar.xz";
14+ sha256 = "1dz1cp31qbwamm9pf8ydmzzhnb6d9z73bigdv3y74dgicz3dpr91";
15+ };
16+ };
17+
18+ popcorntimePackage = stdenv.mkDerivation rec {
19+ name = "popcorntime-package-${version}";
20+ src = srcs."${stdenv.system}";
21+ sourceRoot = ".";
22+ installPhase = ''
23+ mkdir -p $out
24+ cp -r *.so *.pak $out/
25+ cat ${node_webkit_0_9}/bin/nw package.nw > $out/Popcorn-Time
26+ chmod 555 $out/Popcorn-Time
27+ '';
28+ };
29+in
30+ runCommand "popcorntime-${version}" {
31+ buildInputs = [ makeWrapper ];
32+ meta = with stdenv.lib; {
33+ homepage = http://popcorntime.io/;
34+ description = "An application that streams movies and TV shows from torrents";
35+ license = stdenv.lib.licenses.gpl3;
36+ platforms = platforms.linux;
37+ maintainers = with maintainers; [ bobvanderlinden ];
38+ };
39+ }
40+ ''
41+ mkdir -p $out/bin
42+ makeWrapper ${popcorntimePackage}/Popcorn-Time $out/bin/popcorntime
43+ ''
pkgs/top-level/all-packages.nix+2
@@ -2630,6 +2630,8 @@ let
26302630
26312631 polkit_gnome = callPackage ../tools/security/polkit-gnome { };
26322632
2633+ popcorntime = callPackage ../applications/video/popcorntime { };
2634+
26332635 ponysay = callPackage ../tools/misc/ponysay { };
26342636
26352637 povray = callPackage ../tools/graphics/povray {