Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 45 lines 947 B view raw
1{ 2 lib, 3 stdenvNoCC, 4 fetchFromGitHub, 5 nix-update-script, 6 nixosTests, 7 php, 8}: 9 10stdenvNoCC.mkDerivation rec { 11 pname = "cloudlog"; 12 version = "2.6.20"; 13 14 src = fetchFromGitHub { 15 owner = "magicbug"; 16 repo = "Cloudlog"; 17 rev = version; 18 hash = "sha256-weCD5CgNarAxQ6LzLQTKjg+p2D/JmlWWpsqMHbnP7Iw="; 19 }; 20 21 postPatch = '' 22 substituteInPlace index.php \ 23 --replace "define('ENVIRONMENT', 'development');" "define('ENVIRONMENT', 'production');" 24 ''; 25 26 installPhase = '' 27 mkdir $out/ 28 cp -R ./* $out 29 ''; 30 31 passthru = { 32 tests = { 33 inherit (nixosTests) cloudlog; 34 }; 35 updateScript = nix-update-script { }; 36 }; 37 38 meta = with lib; { 39 description = "Web based amateur radio logging application built using PHP & MySQL"; 40 license = licenses.mit; 41 homepage = "https://www.magicbug.co.uk/cloudlog"; 42 platforms = php.meta.platforms; 43 maintainers = with maintainers; [ melling ]; 44 }; 45}