nixpkgs/pkgs/by-name/cl/cloudlog/package.nix

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

45 lines
939 B
Nix
Raw Permalink Normal View History

2023-01-01 15:13:02 -07:00
{ lib
, stdenvNoCC
, fetchFromGitHub
2023-01-30 07:13:56 -07:00
, nix-update-script
2023-01-01 15:13:02 -07:00
, nixosTests
, php
}:
2023-01-01 15:13:02 -07:00
stdenvNoCC.mkDerivation rec {
2023-01-27 21:20:00 -07:00
pname = "cloudlog";
2024-10-07 18:31:38 -06:00
version = "2.6.16";
2023-01-01 15:13:02 -07:00
src = fetchFromGitHub {
owner = "magicbug";
repo = "Cloudlog";
rev = version;
2024-10-07 18:31:38 -06:00
hash = "sha256-1GdIC1vC/SG9duQkrOXIe24OyIwdLgeEiG7i+KYP8Cs=";
2023-01-01 15:13:02 -07:00
};
2023-11-03 12:59:29 -06:00
postPatch = ''
2023-01-01 15:13:02 -07:00
substituteInPlace index.php \
--replace "define('ENVIRONMENT', 'development');" "define('ENVIRONMENT', 'production');"
'';
installPhase = ''
mkdir $out/
cp -R ./* $out
'';
2023-01-30 07:13:56 -07:00
passthru = {
tests = {
inherit (nixosTests) cloudlog;
};
updateScript = nix-update-script { };
2023-01-01 15:13:02 -07:00
};
meta = with lib; {
description = "Web based amateur radio logging application built using PHP & MySQL";
2023-01-01 15:13:02 -07:00
license = licenses.mit;
homepage = "https://www.magicbug.co.uk/cloudlog";
platforms = php.meta.platforms;
maintainers = with maintainers; [ melling ];
};
}