File tree 2 files changed +59
-0
lines changed
development/php-packages/ioncube-loader
2 files changed +59
-0
lines changed Original file line number Diff line number Diff line change
1
+ { stdenv
2
+ , lib
3
+ , fetchzip
4
+ , php
5
+ } :
6
+
7
+ let
8
+ phpVersion = lib . versions . majorMinor php . version ;
9
+
10
+ variant = {
11
+ "aarch64-darwin" = {
12
+ url = "https://web.archive.org/web/20240209234707/https://downloads.ioncube.com/loader_downloads/ioncube_loaders_dar_arm64.tar.gz" ;
13
+ sha256 = "sha256-J6+bOXX9uRdrGouMAxt7nROjjfH4P2txb1hmPoHUmdM=" ;
14
+ prefix = "dar" ;
15
+ } ;
16
+ "aarch64-linux" = {
17
+ url = "https://web.archive.org/web/20240209234617/https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_aarch64.tar.gz" ;
18
+ sha256 = "sha256-oOO4zr0CssxVGIUIfmAujILqOfQf8dJPADkr03a8HAs=" ;
19
+ prefix = "lin" ;
20
+ } ;
21
+ "x86_64-linux" = {
22
+ url = "https://web.archive.org/web/20240209052345if_/https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz" ;
23
+ sha256 = "sha256-rsXKgxKHldBKDjJTsOdJP4SxfxLmMPDY+GizBpuDeyw=" ;
24
+ prefix = "lin" ;
25
+ } ;
26
+ "x86_64-darwin" = {
27
+ url = "https://web.archive.org/web/20240209234406/https://downloads.ioncube.com/loader_downloads/ioncube_loaders_mac_x86-64.tar.gz" ;
28
+ sha256 = "sha256-bz2hQOaFbXePa8MhAZHESpZMRjjBH51IgvbR2EfBYMg=" ;
29
+ prefix = "mac" ;
30
+ } ;
31
+ } ;
32
+ in
33
+ stdenv . mkDerivation {
34
+ version = "13.0.2" ;
35
+ pname = "ioncube-loader" ;
36
+ extensionName = "ioncube-loader" ;
37
+
38
+ src = fetchzip {
39
+ url = variant . ${ stdenv. hostPlatform . system } . url ;
40
+ sha256 = variant . ${ stdenv. hostPlatform . system } . sha256 ;
41
+ } ;
42
+
43
+ installPhase = ''
44
+ mkdir -p $out/lib/php/extensions
45
+ cp $src/ioncube_loader_${ variant . ${ stdenv. hostPlatform . system } . prefix } _${ phpVersion } .so $out/lib/php/extensions/ioncube-loader.so
46
+ '' ;
47
+
48
+ meta = with lib ; {
49
+ description = "Use ionCube-encoded files on a web server" ;
50
+ changelog = "https://www.ioncube.com/loaders.php" ;
51
+ homepage = "https://www.ioncube.com" ;
52
+ sourceProvenance = [ sourceTypes . binaryNativeCode ] ;
53
+ license = licenses . unfree ;
54
+ maintainers = with maintainers ; [ neverbehave ] ;
55
+ platforms = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ] ;
56
+ } ;
57
+ }
Original file line number Diff line number Diff line change @@ -259,6 +259,8 @@ lib.makeScope pkgs.newScope (self: with self; {
259
259
260
260
inotify = callPackage ../development/php-packages/inotify { } ;
261
261
262
+ ioncube-loader = callPackage ../development/php-packages/ioncube-loader { } ;
263
+
262
264
mailparse = callPackage ../development/php-packages/mailparse { } ;
263
265
264
266
maxminddb = callPackage ../development/php-packages/maxminddb { } ;
You can’t perform that action at this time.
0 commit comments