summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/video/popcorntime
diff options
context:
space:
mode:
authorBob van der Linden <bobvanderlinden@gmail.com>2015-06-08 19:33:23 +0200
committerBob van der Linden <bobvanderlinden@gmail.com>2015-06-19 23:22:18 +0200
commit236f8c720da861408029c65e07b32b545365ab70 (patch)
tree19bc5fa7cf28d9e909ad27c8d0d70c9866a26a0b /pkgs/applications/video/popcorntime
parent6cd67cb218441255f8e130a48b4d2261222aa9a9 (diff)
added popcorntime package
Diffstat (limited to 'pkgs/applications/video/popcorntime')
-rw-r--r--pkgs/applications/video/popcorntime/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/applications/video/popcorntime/default.nix b/pkgs/applications/video/popcorntime/default.nix
new file mode 100644
index 000000000000..80ec5051daea
--- /dev/null
+++ b/pkgs/applications/video/popcorntime/default.nix
@@ -0,0 +1,35 @@
+{ stdenv, pkgs, fetchurl, runCommand, makeWrapper, node_webkit_0_9
+}:
+
+let
+ node-webkit = node_webkit_0_9;
+ version = "0.3.7.2";
+ popcorntimePackage = stdenv.mkDerivation rec {
+ name = "popcorntime-package-${version}";
+ src = fetchurl {
+ url = "https://get.popcorntime.io/build/Popcorn-Time-${version}-Linux64.tar.xz";
+ sha256 = "0lm9k4fr73a9p00i3xj2ywa4wvjf9csadm0pcz8d6imwwq44sa8b";
+ };
+ sourceRoot = ".";
+ installPhase = ''
+ mkdir -p $out
+ cp -r *.so *.pak $out/
+ cat ${node-webkit}/bin/nw package.nw > $out/Popcorn-Time
+ chmod 555 $out/Popcorn-Time
+ '';
+ };
+in
+ runCommand "popcorntime-${version}" {
+ buildInputs = [ makeWrapper ];
+ meta = with stdenv.lib; {
+ homepage = http://popcorntime.io/;
+ description = "An application that streams movies and TV shows from torrents";
+ license = stdenv.lib.licenses.gpl3;
+ platforms = platforms.linux;
+ maintainers = with maintainers; [ bobvanderlinden ];
+ };
+ }
+ ''
+ mkdir -p $out/bin
+ makeWrapper ${popcorntimePackage}/Popcorn-Time $out/bin/popcorntime
+ ''