nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 43 lines 1.2 kB view raw
1{ 2 fetchFromGitHub, 3 lib, 4 php84, 5}: 6 7let 8 php = php84; 9in 10php.buildComposerProject2 (finalAttrs: { 11 pname = "postfixadmin"; 12 version = "4.0.1"; 13 14 src = fetchFromGitHub { 15 owner = "postfixadmin"; 16 repo = "postfixadmin"; 17 tag = "postfixadmin-${finalAttrs.version}"; 18 hash = "sha256-mr5FBURTGP2J3JMlcexXjz4GFJNqPR4rZyqHVN7+6iM="; 19 }; 20 21 # Upstream does not ship a lock file, we have to maintain our own for now. 22 # https://github.com/postfixadmin/postfixadmin/issues/948 23 composerLock = ./composer.lock; 24 vendorHash = "sha256-uyHEfWCC6V4d+ez7FbqBKrh4IfbQ2pgD4UvbdGEfobI="; 25 26 postInstall = '' 27 out_dir="$out"/share/php/postfixadmin/ 28 29 ln -sf /etc/postfixadmin/config.local.php "$out_dir" 30 ln -sf /var/cache/postfixadmin/templates_c "$out_dir" 31 ''; 32 33 passthru.phpPackage = php; 34 35 meta = { 36 changelog = "https://github.com/postfixadmin/postfixadmin/releases/tag/${finalAttrs.src.tag}"; 37 description = "Web based virtual user administration interface for Postfix mail servers"; 38 homepage = "https://postfixadmin.sourceforge.io/"; 39 maintainers = with lib.maintainers; [ yayayayaka ]; 40 license = lib.licenses.gpl2Plus; 41 platforms = lib.platforms.all; 42 }; 43})