mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
commit
1bef2f1606
1 changed files with 6 additions and 8 deletions
|
@ -1,10 +1,11 @@
|
|||
{ stdenv, lib, coursier, jdk, jre, makeWrapper }:
|
||||
|
||||
let
|
||||
baseName = "metals";
|
||||
version = "0.9.1";
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "metals";
|
||||
version = "0.9.2";
|
||||
|
||||
deps = stdenv.mkDerivation {
|
||||
name = "${baseName}-deps-${version}";
|
||||
name = "${pname}-deps-${version}";
|
||||
buildCommand = ''
|
||||
export COURSIER_CACHE=$(pwd)
|
||||
${coursier}/bin/coursier fetch org.scalameta:metals_2.12:${version} \
|
||||
|
@ -15,11 +16,8 @@ let
|
|||
'';
|
||||
outputHashMode = "recursive";
|
||||
outputHashAlgo = "sha256";
|
||||
outputHash = "1pa84y7jrfl8p7lwz2pjlv70fqg1wmcz98npqq5i443smf7r9v4f";
|
||||
outputHash = "1gnf2p578nk1ygx3cc4mb7fa690c51nbdwvc2qz2805m4xg3x7zv";
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${baseName}-${version}";
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
buildInputs = [ jdk deps ];
|
||||
|
|
Loading…
Reference in a new issue