ammonite: Format with nixfmt

This commit is contained in:
Tim Steinbach 2020-10-08 10:23:39 -04:00
parent a5209ce244
commit 96e5d91998
No known key found for this signature in database
GPG Key ID: 6538CB9266B06F31

View File

@ -1,17 +1,16 @@
{ stdenv, fetchurl, jre { stdenv, fetchurl, jre, disableRemoteLogging ? true }:
, disableRemoteLogging ? true
}:
with stdenv.lib; with stdenv.lib;
let let
common = { scalaVersion, sha256 }: common = { scalaVersion, sha256 }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "ammonite"; pname = "ammonite";
version = "2.2.0"; version = "2.2.0";
src = fetchurl { 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; inherit sha256;
}; };
@ -38,8 +37,14 @@ stdenv.mkDerivation rec {
platforms = platforms.all; platforms = platforms.all;
maintainers = [ maintainers.nequissimus ]; maintainers = [ maintainers.nequissimus ];
}; };
}; };
in { in {
ammonite_2_12 = common { scalaVersion = "2.12"; sha256 = "0nclfqwy3jfn1680z1hd0zzmc0b79wpvx6gn1jnm19aq7qcvh5zp"; }; ammonite_2_12 = common {
ammonite_2_13 = common { scalaVersion = "2.13"; sha256 = "104bnahn382sb6vwjvchsg0jrnkkwjn08rfh0g5ra7lwhgcj2719"; }; scalaVersion = "2.12";
sha256 = "0nclfqwy3jfn1680z1hd0zzmc0b79wpvx6gn1jnm19aq7qcvh5zp";
};
ammonite_2_13 = common {
scalaVersion = "2.13";
sha256 = "104bnahn382sb6vwjvchsg0jrnkkwjn08rfh0g5ra7lwhgcj2719";
};
} }