2023-01-01 22:13:02 +00:00
|
|
|
{ lib
|
|
|
|
, stdenvNoCC
|
|
|
|
, fetchFromGitHub
|
2023-01-30 14:13:56 +00:00
|
|
|
, nix-update-script
|
2023-01-01 22:13:02 +00:00
|
|
|
, nixosTests
|
2023-05-14 14:21:04 +00:00
|
|
|
, php
|
|
|
|
}:
|
2023-01-01 22:13:02 +00:00
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
2023-01-28 04:20:00 +00:00
|
|
|
pname = "cloudlog";
|
2024-06-27 10:41:42 +00:00
|
|
|
version = "2.6.15";
|
2023-01-01 22:13:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "magicbug";
|
|
|
|
repo = "Cloudlog";
|
|
|
|
rev = version;
|
2024-06-27 10:41:42 +00:00
|
|
|
hash = "sha256-G+PnzyOG/HZ8I66BHdtK0GOUF7ATrTYpzM9sVaSjMDQ=";
|
2023-01-01 22:13:02 +00:00
|
|
|
};
|
|
|
|
|
2023-11-03 18:59:29 +00:00
|
|
|
postPatch = ''
|
2023-01-01 22:13:02 +00:00
|
|
|
substituteInPlace index.php \
|
|
|
|
--replace "define('ENVIRONMENT', 'development');" "define('ENVIRONMENT', 'production');"
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir $out/
|
|
|
|
cp -R ./* $out
|
|
|
|
'';
|
|
|
|
|
2023-01-30 14:13:56 +00:00
|
|
|
passthru = {
|
|
|
|
tests = {
|
|
|
|
inherit (nixosTests) cloudlog;
|
|
|
|
};
|
|
|
|
updateScript = nix-update-script { };
|
2023-01-01 22:13:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
2023-05-14 14:21:04 +00:00
|
|
|
description = "Web based amateur radio logging application built using PHP & MySQL";
|
2023-01-01 22:13:02 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
homepage = "https://www.magicbug.co.uk/cloudlog";
|
|
|
|
platforms = php.meta.platforms;
|
|
|
|
maintainers = with maintainers; [ melling ];
|
|
|
|
};
|
|
|
|
}
|