Merge pull request #108230 from jtojnar/adminer-cleanup

adminer: Clean up

authored by

Sandro and committed by
GitHub
63bc270f 2f503744

+18 -4
+18 -4
pkgs/servers/adminer/default.nix
··· 1 - { stdenv, libbsd, fetchurl, phpPackages, php }: 1 + { stdenv, fetchurl, php }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 version = "4.7.8"; ··· 10 10 sha256 = "0k794agvd8pa3mwl0076i7753fzxd41lhr23aih4l2lbdgnzi68z"; 11 11 }; 12 12 13 - nativeBuildInputs = with phpPackages; [ php composer ]; 13 + nativeBuildInputs = [ 14 + php 15 + php.packages.composer 16 + ]; 14 17 15 18 buildPhase = '' 19 + runHook preBuild 20 + 16 21 composer --no-cache run compile 22 + 23 + runHook postBuild 17 24 ''; 18 25 19 26 installPhase = '' 27 + runHook preInstall 28 + 20 29 mkdir $out 21 30 cp adminer-${version}.php $out/adminer.php 31 + 32 + runHook postInstall 22 33 ''; 23 34 24 35 meta = with stdenv.lib; { 25 36 description = "Database management in a single PHP file"; 26 37 homepage = "https://www.adminer.org"; 27 - license = with licenses; [ asl20 gpl2 ]; 28 - maintainers = with maintainers; [ sstef ]; 38 + license = with licenses; [ asl20 gpl2Only ]; 39 + maintainers = with maintainers; [ 40 + jtojnar 41 + sstef 42 + ]; 29 43 platforms = platforms.all; 30 44 }; 31 45 }