git.iko.soy/typeable/nixpkgs
on master help sign in
Build popcorntime from ci until yts movie outage is fixed

Currently the movie tab is broken. It's fixed in the experimental branch (master) http://status.popcorntime.io/ > * Update - Issue with the subtitles API affects Release 0.3.7-2, Experimental builds are fine > May 13, 22:54 EDT > [...] > * Identified - The issue with the YTS API (Movies) seems to be related to a bad response for one of the movies. The movies page will continue to be intermittent until the issue is resolved. > May 10, 21:29 EDT > * Investigating - YTS (Movies) is currently unavailable for Popcorn Time release 0.3.7-2, but is still working for the experimental builds. We're looking into what the issue could be and why it's only affecting release 0.3.7-2 > May 10, 18:34 EDT

commit5562750cd037f517e9a73e1fdb2735a5868a8a61 authorGuillaume Massé <masgui@gmail.com> dateTue 7 Jul 2015, 00:00 (11 years ago) parent243b2f7
1 file changed+30−15
pkgs/applications/video/popcorntime/default.nix+30−15
pkgs/applications/video/popcorntime/default.nix+30−15
@@ -1,24 +1,39 @@
1−{ stdenv, fetchurl, runCommand, makeWrapper, node_webkit_0_9
1+{ lib, stdenv, fetchurl, runCommand, makeWrapper, node_webkit_0_9,
2+ fromCi ? true,
3+ build ? "652",
4+ version ? if fromCi then "0.3.7-2-0ac62b848" else "0.3.7.2"
25}:
36
47let
5− version = "0.3.7.2";
8+ config =
9+ if stdenv.system == "x86_64-linux" then
10+ {sys = "Linux32";
11+ sha256 =
12+ if fromCi then "06av40b68xy2mv2fp9qg8npqmnvkl00p2jvbm2fdfnpc9jj746iy"
13+ else "0lm9k4fr73a9p00i3xj2ywa4wvjf9csadm0pcz8d6imwwq44sa8b";
14+ }
15+ else if stdenv.system == "i686-linux" then
16+ {sys = "Linux64";
17+ sha256 =
18+ if fromCi then "1nr2zaixdr5vqynga7jig3fw9dckcnzcbdmbr8haq4a486x2nq0f"
19+ else "1dz1cp31qbwamm9pf8ydmzzhnb6d9z73bigdv3y74dgicz3dpr91";
20+ }
21+ else throw "Unsupported system ${stdenv.system}";
22+
23+ fetchurlConf =
24+ let
25+ ciBase = "https://ci.popcorntime.io/job/Popcorn-Experimental/652/artifact/build/releases/Popcorn-Time";
26+ relBase = "https://get.popcorntime.io/build";
27+ in {
28+ url =
29+ if fromCi then "${ciBase}/${lib.toLower config.sys}/Popcorn-Time-${version}-${config.sys}.tar.xz"
30+ else "${relBase}/Popcorn-Time-${version}-Linux64.tar.xz";
31+ sha256 = config.sha256;
32+ };
633
734 popcorntimePackage = stdenv.mkDerivation rec {
835 name = "popcorntime-package-${version}";
9− src =
10− if stdenv.system == "x86_64-linux" then
11− fetchurl {
12− url = "https://get.popcorntime.io/build/Popcorn-Time-${version}-Linux64.tar.xz";
13− sha256 = "0lm9k4fr73a9p00i3xj2ywa4wvjf9csadm0pcz8d6imwwq44sa8b";
14− }
15− else if stdenv.system == "i686-linux" then
16− fetchurl {
17− url = "https://get.popcorntime.io/build/Popcorn-Time-${version}-Linux32.tar.xz";
18− sha256 = "1dz1cp31qbwamm9pf8ydmzzhnb6d9z73bigdv3y74dgicz3dpr91";
19− }
20− else
21− throw "Unsupported system ${stdenv.system}";
36+ src = fetchurl fetchurlConf;
2237 sourceRoot = ".";
2338 installPhase = ''
2439 mkdir -p $out