5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
44 lines
939 B
Nix
44 lines
939 B
Nix
{ lib
|
|
, stdenvNoCC
|
|
, fetchFromGitHub
|
|
, nix-update-script
|
|
, nixosTests
|
|
, php
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "cloudlog";
|
|
version = "2.4.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "magicbug";
|
|
repo = "Cloudlog";
|
|
rev = version;
|
|
sha256 = "sha256-sygkddnSou1U2ZEwNhKvHCkFEl91pYSYOjbKPLqgGj4=";
|
|
};
|
|
|
|
postPath = ''
|
|
substituteInPlace index.php \
|
|
--replace "define('ENVIRONMENT', 'development');" "define('ENVIRONMENT', 'production');"
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir $out/
|
|
cp -R ./* $out
|
|
'';
|
|
|
|
passthru = {
|
|
tests = {
|
|
inherit (nixosTests) cloudlog;
|
|
};
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Web based amateur radio logging application built using PHP & MySQL";
|
|
license = licenses.mit;
|
|
homepage = "https://www.magicbug.co.uk/cloudlog";
|
|
platforms = php.meta.platforms;
|
|
maintainers = with maintainers; [ melling ];
|
|
};
|
|
}
|