@@ -1,4 +1,4 @@
1−{ stdenv, libbsd, fetchurl, phpPackages, php }:
1+{ stdenv, fetchurl, php }:
22
33stdenv.mkDerivation rec {
44 version = "4.7.8";
@@ -10,22 +10,36 @@ stdenv.mkDerivation rec {
1010 sha256 = "0k794agvd8pa3mwl0076i7753fzxd41lhr23aih4l2lbdgnzi68z";
1111 };
1212
13− nativeBuildInputs = with phpPackages; [ php composer ];
13+ nativeBuildInputs = [
14+ php
15+ php.packages.composer
16+ ];
1417
1518 buildPhase = ''
19+ runHook preBuild
20+
1621 composer --no-cache run compile
22+
23+ runHook postBuild
1724 '';
1825
1926 installPhase = ''
27+ runHook preInstall
28+
2029 mkdir $out
2130 cp adminer-${version}.php $out/adminer.php
31+
32+ runHook postInstall
2233 '';
2334
2435 meta = with stdenv.lib; {
2536 description = "Database management in a single PHP file";
2637 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+ ];
2943 platforms = platforms.all;
3044 };
3145}