Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 40 lines 974 B view raw
1{ 2 fetchFromGitHub, 3 stdenv, 4 lib, 5 nixosTests, 6}: 7 8stdenv.mkDerivation rec { 9 pname = "postfixadmin"; 10 version = "3.3.15"; 11 12 src = fetchFromGitHub { 13 owner = "postfixadmin"; 14 repo = "postfixadmin"; 15 tag = "postfixadmin-${version}"; 16 hash = "sha256-dKdJS9WQ/pPYITP53/Aynls8ZgVF7tAqL9gQEw+u8TM="; 17 }; 18 19 installPhase = '' 20 runHook preInstall 21 22 mkdir $out 23 cp -r * $out/ 24 ln -sf /etc/postfixadmin/config.local.php $out/ 25 ln -sf /var/cache/postfixadmin/templates_c $out/ 26 27 runHook postInstall 28 ''; 29 30 passthru.tests = { inherit (nixosTests) postfixadmin; }; 31 32 meta = { 33 changelog = "https://github.com/postfixadmin/postfixadmin/releases/tag/${src.tag}"; 34 description = "Web based virtual user administration interface for Postfix mail servers"; 35 homepage = "https://postfixadmin.sourceforge.io/"; 36 maintainers = with lib.maintainers; [ globin ]; 37 license = lib.licenses.gpl2Plus; 38 platforms = lib.platforms.all; 39 }; 40}