Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
946 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
stdenvNoCC,
fetchFromGitHub,
nix-update-script,
nixosTests,
php,
}:
stdenvNoCC.mkDerivation rec {
pname = "cloudlog";
version = "2.7.1";
src = fetchFromGitHub {
owner = "magicbug";
repo = "Cloudlog";
rev = version;
hash = "sha256-My0z4MW/9O0+ErIh7SEWU3KGJ4UQDmhwJICtBgQ4+q8=";
};
postPatch = ''
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 ];
};
}