571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
45 lines
939 B
Nix
45 lines
939 B
Nix
{ lib
|
|
, stdenvNoCC
|
|
, fetchFromGitHub
|
|
, nix-update-script
|
|
, nixosTests
|
|
, php
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "cloudlog";
|
|
version = "2.6.16";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "magicbug";
|
|
repo = "Cloudlog";
|
|
rev = version;
|
|
hash = "sha256-1GdIC1vC/SG9duQkrOXIe24OyIwdLgeEiG7i+KYP8Cs=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|