ammonite: Format with nixfmt
This commit is contained in:
parent
a5209ce244
commit
96e5d91998
@ -1,17 +1,16 @@
|
||||
{ stdenv, fetchurl, jre
|
||||
, disableRemoteLogging ? true
|
||||
}:
|
||||
{ stdenv, fetchurl, jre, disableRemoteLogging ? true }:
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
let
|
||||
common = { scalaVersion, sha256 }:
|
||||
stdenv.mkDerivation rec {
|
||||
common = { scalaVersion, sha256 }:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ammonite";
|
||||
version = "2.2.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/lihaoyi/Ammonite/releases/download/${version}/${scalaVersion}-${version}";
|
||||
url =
|
||||
"https://github.com/lihaoyi/Ammonite/releases/download/${version}/${scalaVersion}-${version}";
|
||||
inherit sha256;
|
||||
};
|
||||
|
||||
@ -38,8 +37,14 @@ stdenv.mkDerivation rec {
|
||||
platforms = platforms.all;
|
||||
maintainers = [ maintainers.nequissimus ];
|
||||
};
|
||||
};
|
||||
};
|
||||
in {
|
||||
ammonite_2_12 = common { scalaVersion = "2.12"; sha256 = "0nclfqwy3jfn1680z1hd0zzmc0b79wpvx6gn1jnm19aq7qcvh5zp"; };
|
||||
ammonite_2_13 = common { scalaVersion = "2.13"; sha256 = "104bnahn382sb6vwjvchsg0jrnkkwjn08rfh0g5ra7lwhgcj2719"; };
|
||||
ammonite_2_12 = common {
|
||||
scalaVersion = "2.12";
|
||||
sha256 = "0nclfqwy3jfn1680z1hd0zzmc0b79wpvx6gn1jnm19aq7qcvh5zp";
|
||||
};
|
||||
ammonite_2_13 = common {
|
||||
scalaVersion = "2.13";
|
||||
sha256 = "104bnahn382sb6vwjvchsg0jrnkkwjn08rfh0g5ra7lwhgcj2719";
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user