depot/third_party/nixpkgs/pkgs/applications/radio/cloudlog/default.nix
Default email 98eb3e9ef5 Project import generated by Copybara.
GitOrigin-RevId: 00d80d13810dbfea8ab4ed1009b09100cca86ba8
2024-07-01 15:47:52 +00:00

44 lines
939 B
Nix

{ lib
, stdenvNoCC
, fetchFromGitHub
, nix-update-script
, nixosTests
, php
}:
stdenvNoCC.mkDerivation rec {
pname = "cloudlog";
version = "2.6.15";
src = fetchFromGitHub {
owner = "magicbug";
repo = "Cloudlog";
rev = version;
hash = "sha256-G+PnzyOG/HZ8I66BHdtK0GOUF7ATrTYpzM9sVaSjMDQ=";
};
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 ];
};
}