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