tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
Remove obsolete versions of Flash
Eelco Dolstra
13 years ago
bc9bff1d
99f38ee7
+1
-181
5 changed files
expand all
collapse all
unified
split
pkgs
applications
networking
browsers
mozilla-plugins
flashplayer-10
builder.sh
default.nix
flashplayer-9
builder.sh
default.nix
top-level
all-packages.nix
-23
pkgs/applications/networking/browsers/mozilla-plugins/flashplayer-10/builder.sh
···
1
1
-
source $stdenv/setup
2
2
-
3
3
-
dontStrip=1
4
4
-
dontPatchELF=1
5
5
-
sourceRoot=$TMPDIR
6
6
-
7
7
-
unpackPhase() {
8
8
-
tar xvzf $src;
9
9
-
for a in *; do
10
10
-
if [ -d $a ]; then
11
11
-
cd $a
12
12
-
break
13
13
-
fi
14
14
-
done
15
15
-
}
16
16
-
17
17
-
installPhase() {
18
18
-
mkdir -p $out/lib/mozilla/plugins
19
19
-
cp -pv libflashplayer.so $out/lib/mozilla/plugins
20
20
-
patchelf --set-rpath "$rpath" $out/lib/mozilla/plugins/libflashplayer.so
21
21
-
}
22
22
-
23
23
-
genericBuild
-88
pkgs/applications/networking/browsers/mozilla-plugins/flashplayer-10/default.nix
···
1
1
-
{ stdenv
2
2
-
, fetchurl
3
3
-
, zlib
4
4
-
, alsaLib
5
5
-
, curl
6
6
-
, nss
7
7
-
, nspr
8
8
-
, fontconfig
9
9
-
, freetype
10
10
-
, expat
11
11
-
, libX11
12
12
-
, libXext
13
13
-
, libXrender
14
14
-
, libXt
15
15
-
, gtk
16
16
-
, glib
17
17
-
, pango
18
18
-
, cairo
19
19
-
, atk
20
20
-
, gdk_pixbuf
21
21
-
, debug ? false
22
22
-
23
23
-
/* you have to add ~/mm.cfg :
24
24
-
25
25
-
TraceOutputFileEnable=1
26
26
-
ErrorReportingEnable=1
27
27
-
MaxWarnings=1
28
28
-
29
29
-
in order to read the flash trace at ~/.macromedia/Flash_Player/Logs/flashlog.txt
30
30
-
Then FlashBug (a FireFox plugin) shows the log as well
31
31
-
*/
32
32
-
33
33
-
}:
34
34
-
35
35
-
let
36
36
-
37
37
-
src =
38
38
-
if stdenv.system == "x86_64-linux" then
39
39
-
if debug then
40
40
-
# no plans to provide a x86_64 version:
41
41
-
# http://labs.adobe.com/technologies/flashplayer10/faq.html
42
42
-
throw "no x86_64 debugging version available"
43
43
-
else {
44
44
-
# -> http://labs.adobe.com/downloads/flashplayer10.html
45
45
-
version = "10.3.181.34";
46
46
-
url = http://download.macromedia.com/pub/labs/flashplayer10/flashplayer10_2_p3_64bit_linux_111710.tar.gz;
47
47
-
sha256 = "1w2zs2f0q1vpx4ia9pj1k4p830dwz7ypyn302mi48wcpz1wzc1gg";
48
48
-
}
49
49
-
else if stdenv.system == "i686-linux" then
50
50
-
if debug then {
51
51
-
# The debug version also contains a player
52
52
-
version = "10.2_p2-debug-r092710";
53
53
-
url = http://download.macromedia.com/pub/labs/flashplayer10/flashplayer_square_p2_32bit_debug_linux_092710.tar.gz;
54
54
-
sha256 = "11w3mxa39l4mnlsqzlwbdh1sald549afyqbx2kbid7in5qzamlcc";
55
55
-
} else {
56
56
-
version = "10.3.183.10";
57
57
-
url = http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_10_linux.tar.gz;
58
58
-
sha256 = "0fj51dg0aa813b44yn8dvmmvw4qwi8vbi0x8n1bcqrcld3sbpmfz";
59
59
-
}
60
60
-
else throw "Flash Player is not supported on this platform";
61
61
-
62
62
-
in
63
63
-
64
64
-
stdenv.mkDerivation {
65
65
-
name = "flashplayer-${src.version}";
66
66
-
67
67
-
builder = ./builder.sh;
68
68
-
69
69
-
src = fetchurl { inherit (src) url sha256; };
70
70
-
71
71
-
inherit zlib alsaLib;
72
72
-
73
73
-
passthru = {
74
74
-
mozillaPlugin = "/lib/mozilla/plugins";
75
75
-
};
76
76
-
77
77
-
rpath = stdenv.lib.makeLibraryPath
78
78
-
[ zlib alsaLib curl nss nspr fontconfig freetype expat libX11
79
79
-
libXext libXrender libXt gtk glib pango atk cairo gdk_pixbuf
80
80
-
];
81
81
-
82
82
-
buildPhase = ":";
83
83
-
84
84
-
meta = {
85
85
-
description = "Adobe Flash Player browser plugin";
86
86
-
homepage = http://www.adobe.com/products/flashplayer/;
87
87
-
};
88
88
-
}
-14
pkgs/applications/networking/browsers/mozilla-plugins/flashplayer-9/builder.sh
···
1
1
-
source $stdenv/setup
2
2
-
3
3
-
dontStrip=1
4
4
-
dontPatchELF=1
5
5
-
6
6
-
sourceRoot=.
7
7
-
8
8
-
installPhase() {
9
9
-
mkdir -p $out/lib/mozilla/plugins
10
10
-
cp -p libflashplayer.so $out/lib/mozilla/plugins
11
11
-
patchelf --set-rpath $rpath $out/lib/mozilla/plugins/libflashplayer.so
12
12
-
}
13
13
-
14
14
-
genericBuild
-47
pkgs/applications/networking/browsers/mozilla-plugins/flashplayer-9/default.nix
···
1
1
-
{ stdenv
2
2
-
, fetchurl
3
3
-
, zlib
4
4
-
, alsaLib
5
5
-
, nss
6
6
-
, nspr
7
7
-
, fontconfig
8
8
-
, freetype
9
9
-
, expat
10
10
-
, libX11
11
11
-
, libXext
12
12
-
, libXrender
13
13
-
, libXt
14
14
-
, gtk
15
15
-
, glib
16
16
-
, pango
17
17
-
, atk
18
18
-
19
19
-
, customSrc ? null
20
20
-
}:
21
21
-
22
22
-
assert stdenv.system == "i686-linux";
23
23
-
24
24
-
stdenv.mkDerivation {
25
25
-
name = "flashplayer-9.0.124.0";
26
26
-
27
27
-
builder = ./builder.sh;
28
28
-
src = if customSrc == null then
29
29
-
fetchurl {
30
30
-
url = http://download.macromedia.com/pub/flashplayer/installers/current/9/install_flash_player_9.tar.gz;
31
31
-
sha256 = "1cnsjgmy7rwj3spzb5mmpmvzxjp435jisl0dd8s4rf4xskyy6d6r";
32
32
-
}
33
33
-
else customSrc;
34
34
-
35
35
-
inherit zlib alsaLib;
36
36
-
37
37
-
passthru = {
38
38
-
mozillaPlugin = "/lib/mozilla/plugins";
39
39
-
};
40
40
-
41
41
-
rpath = stdenv.lib.makeLibraryPath [zlib alsaLib nss nspr fontconfig freetype expat libX11 libXext libXrender libXt gtk glib pango atk] ;
42
42
-
43
43
-
meta = {
44
44
-
description = "Adobe Flash Player browser plugin";
45
45
-
homepage = http://www.adobe.com/products/flashplayer/;
46
46
-
};
47
47
-
}
+1
-9
pkgs/top-level/all-packages.nix
···
6962
6962
6963
6963
flac = callPackage ../applications/audio/flac { };
6964
6964
6965
6965
-
flashplayer = flashplayer11;
6966
6966
-
6967
6967
-
flashplayer9 = callPackage ../applications/networking/browsers/mozilla-plugins/flashplayer-9 { };
6968
6968
-
6969
6969
-
flashplayer10 = callPackage ../applications/networking/browsers/mozilla-plugins/flashplayer-10 {
6970
6970
-
debug = config.flashplayer.debug or false;
6971
6971
-
};
6972
6972
-
6973
6973
-
flashplayer11 = callPackage ../applications/networking/browsers/mozilla-plugins/flashplayer-11 {
6965
6965
+
flashplayer = callPackage ../applications/networking/browsers/mozilla-plugins/flashplayer-11 {
6974
6966
debug = config.flashplayer.debug or false;
6975
6967
# !!! Fix the dependency on two different builds of nss.
6976
6968
};