diff options
author | Matt Melling <mattmelling@fastmail.com> | 2023-01-01 22:13:02 +0000 |
---|---|---|
committer | Matt Melling <mattmelling@fastmail.com> | 2023-01-23 22:41:07 +0000 |
commit | 31e3844aea6550150924cc24a00faf3d04e5a3b2 (patch) | |
tree | ca22c7fcf085068dab5c37fc46640d96940fdc6e /pkgs/applications/radio/cloudlog | |
parent | 3325956ea1e616ae8bdba6ec4c467f6db63b13da (diff) |
cloudlog: init at 2.3
Diffstat (limited to 'pkgs/applications/radio/cloudlog')
-rw-r--r-- | pkgs/applications/radio/cloudlog/default.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/applications/radio/cloudlog/default.nix b/pkgs/applications/radio/cloudlog/default.nix new file mode 100644 index 0000000000000..dd117fd9d4512 --- /dev/null +++ b/pkgs/applications/radio/cloudlog/default.nix @@ -0,0 +1,43 @@ +{ lib +, stdenvNoCC +, fetchFromGitHub +, nixosTests +, php}: + +stdenvNoCC.mkDerivation rec { + name = "cloudlog"; + version = "2.3"; + + src = fetchFromGitHub { + owner = "magicbug"; + repo = "Cloudlog"; + rev = version; + sha256 = "sha256-IepCeV/mYy/GEzRTXf67LYQQaN5Rj5Z77KaF2l30r60="; + }; + + postPath = '' + substituteInPlace index.php \ + --replace "define('ENVIRONMENT', 'development');" "define('ENVIRONMENT', 'production');" + ''; + + installPhase = '' + mkdir $out/ + cp -R ./* $out + ''; + + passthru.tests = { + inherit (nixosTests) cloudlog; + }; + + 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 ]; + }; +} |