-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.nix
More file actions
54 lines (43 loc) · 1.36 KB
/
package.nix
File metadata and controls
54 lines (43 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{ lib
, fetchFromGitHub
, php84
, dataDir ? "/var/lib/ixp-manager"
}:
let
phpPackage = php84;
in
phpPackage.buildComposerProject2 (finalAttrs: {
pname = "ixp-manager";
version = "7.2.0";
src = fetchFromGitHub {
owner = "inex";
repo = "IXP-Manager";
tag = "v${finalAttrs.version}";
sha256 = "sha256-wrLWAd9GdNqzkmZnjzZ0CNaAXNaeXVvmpaRiF7uleSM=";
};
# fails because deprecated license identifier was used 🙄
composerStrictValidation = false;
vendorHash = "sha256-i+jqBb87EsfJgNEL2cwB5E8/1DwbWcsCFhX19HgQz48=";
patches = [
./cipher-config.patch
];
installPhase = ''
runHook preInstall
ixp_manager_out="$out/share/php/ixp-manager"
rm -r $ixp_manager_out/bootstrap/cache $ixp_manager_out/storage
ln -s ${dataDir}/.env $ixp_manager_out/.env
ln -s ${dataDir}/storage $ixp_manager_out/storage
ln -s ${dataDir}/cache $ixp_manager_out/bootstrap/cache
ln -s ${dataDir}/skin $ixp_manager_out/resources/skins/custom
ln -s ${dataDir}/custom.php $ixp_manager_out/config/custom.php
runHook postInstall
'';
passthru = { inherit phpPackage; };
meta = with lib; {
description = "A full stack management platform for Internet eXchange Points (IXPs)";
homepage = "https://www.ixpmanager.org/";
license = licenses.gpl2Only;
# maintainers = teams.wdz.members;
platforms = platforms.linux;
};
})