mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
scalafix: deprecate phases and use pname&version
This commit is contained in:
parent
8f67e19b84
commit
4a7e4dd645
1 changed files with 4 additions and 5 deletions
|
@ -17,21 +17,20 @@ let
|
|||
};
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "${baseName}-${version}";
|
||||
pname = baseName;
|
||||
inherit version;
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
buildInputs = [ jdk deps ];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
phases = [ "installPhase" "checkPhase" ];
|
||||
dontUnpack = true;
|
||||
|
||||
installPhase = ''
|
||||
makeWrapper ${jre}/bin/java $out/bin/${baseName} \
|
||||
--add-flags "-cp $CLASSPATH scalafix.cli.Cli"
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
installCheckPhase = ''
|
||||
$out/bin/${baseName} --version | grep -q "${version}"
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue