depot/third_party/nixpkgs/pkgs/applications/radio/cloudlog/default.nix
Default email 87f9c27ba9 Project import generated by Copybara.
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
2023-04-12 14:48:02 +02:00

47 lines
1.1 KiB
Nix

{ lib
, stdenvNoCC
, fetchFromGitHub
, nix-update-script
, nixosTests
, php}:
stdenvNoCC.mkDerivation rec {
pname = "cloudlog";
version = "2.4.1";
src = fetchFromGitHub {
owner = "magicbug";
repo = "Cloudlog";
rev = version;
sha256 = "sha256-tFerQJhe/FemtOaP56b2XhLtXH2a8CRT2E69v/77Qz0=";
};
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
supports general station logging tasks from HF to Microwave with
supporting applications to support CAT control.
'';
license = licenses.mit;
homepage = "https://www.magicbug.co.uk/cloudlog";
platforms = php.meta.platforms;
maintainers = with maintainers; [ melling ];
};
}