mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
Merge pull request #108230 from jtojnar/adminer-cleanup
adminer: Clean up
This commit is contained in:
commit
63bc270f1b
@ -1,4 +1,4 @@
|
||||
{ stdenv, libbsd, fetchurl, phpPackages, php }:
|
||||
{ stdenv, fetchurl, php }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "4.7.8";
|
||||
@ -10,22 +10,36 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0k794agvd8pa3mwl0076i7753fzxd41lhr23aih4l2lbdgnzi68z";
|
||||
};
|
||||
|
||||
nativeBuildInputs = with phpPackages; [ php composer ];
|
||||
nativeBuildInputs = [
|
||||
php
|
||||
php.packages.composer
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
composer --no-cache run compile
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir $out
|
||||
cp adminer-${version}.php $out/adminer.php
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Database management in a single PHP file";
|
||||
homepage = "https://www.adminer.org";
|
||||
license = with licenses; [ asl20 gpl2 ];
|
||||
maintainers = with maintainers; [ sstef ];
|
||||
license = with licenses; [ asl20 gpl2Only ];
|
||||
maintainers = with maintainers; [
|
||||
jtojnar
|
||||
sstef
|
||||
];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user