diff options
author | Tim Steinbach <tim@nequissimus.com> | 2020-10-08 10:23:39 -0400 |
---|---|---|
committer | Tim Steinbach <tim@nequissimus.com> | 2020-10-08 11:00:17 -0400 |
commit | 96e5d919981cc4ae841c342c1dbdba8ce14c7752 (patch) | |
tree | 6f786898a8e7e980158b84228265a9d64702eaf7 /pkgs/development/tools/ammonite/default.nix | |
parent | a5209ce244d8efa9583c84cf66960495edaff7b3 (diff) | |
download | nixpkgs-96e5d919981cc4ae841c342c1dbdba8ce14c7752.tar nixpkgs-96e5d919981cc4ae841c342c1dbdba8ce14c7752.tar.gz nixpkgs-96e5d919981cc4ae841c342c1dbdba8ce14c7752.tar.bz2 nixpkgs-96e5d919981cc4ae841c342c1dbdba8ce14c7752.tar.lz nixpkgs-96e5d919981cc4ae841c342c1dbdba8ce14c7752.tar.xz nixpkgs-96e5d919981cc4ae841c342c1dbdba8ce14c7752.tar.zst nixpkgs-96e5d919981cc4ae841c342c1dbdba8ce14c7752.zip |
ammonite: Format with nixfmt
Diffstat (limited to 'pkgs/development/tools/ammonite/default.nix')
-rw-r--r-- | pkgs/development/tools/ammonite/default.nix | 75 |
1 files changed, 40 insertions, 35 deletions
diff --git a/pkgs/development/tools/ammonite/default.nix b/pkgs/development/tools/ammonite/default.nix index 8e420f5f462..82e38e2a25f 100644 --- a/pkgs/development/tools/ammonite/default.nix +++ b/pkgs/development/tools/ammonite/default.nix @@ -1,45 +1,50 @@ -{ stdenv, fetchurl, jre -, disableRemoteLogging ? true -}: +{ stdenv, fetchurl, jre, disableRemoteLogging ? true }: with stdenv.lib; let -common = { scalaVersion, sha256 }: -stdenv.mkDerivation rec { - pname = "ammonite"; - version = "2.2.0"; + 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}"; - inherit sha256; - }; + src = fetchurl { + url = + "https://github.com/lihaoyi/Ammonite/releases/download/${version}/${scalaVersion}-${version}"; + inherit sha256; + }; - phases = "installPhase"; + phases = "installPhase"; - installPhase = '' - install -Dm755 $src $out/bin/amm - sed -i '0,/java/{s|java|${jre}/bin/java|}' $out/bin/amm - '' + optionalString (disableRemoteLogging) '' - sed -i '0,/ammonite.Main/{s|ammonite.Main|ammonite.Main --no-remote-logging|}' $out/bin/amm - sed -i '1i #!/bin/sh' $out/bin/amm - ''; + installPhase = '' + install -Dm755 $src $out/bin/amm + sed -i '0,/java/{s|java|${jre}/bin/java|}' $out/bin/amm + '' + optionalString (disableRemoteLogging) '' + sed -i '0,/ammonite.Main/{s|ammonite.Main|ammonite.Main --no-remote-logging|}' $out/bin/amm + sed -i '1i #!/bin/sh' $out/bin/amm + ''; - meta = { - description = "Improved Scala REPL"; - longDescription = '' - The Ammonite-REPL is an improved Scala REPL, re-implemented from first principles. - It is much more featureful than the default REPL and comes - with a lot of ergonomic improvements and configurability - that may be familiar to people coming from IDEs or other REPLs such as IPython or Zsh. - ''; - homepage = "http://www.lihaoyi.com/Ammonite/"; - license = licenses.mit; - platforms = platforms.all; - maintainers = [ maintainers.nequissimus ]; - }; -}; + meta = { + description = "Improved Scala REPL"; + longDescription = '' + The Ammonite-REPL is an improved Scala REPL, re-implemented from first principles. + It is much more featureful than the default REPL and comes + with a lot of ergonomic improvements and configurability + that may be familiar to people coming from IDEs or other REPLs such as IPython or Zsh. + ''; + homepage = "http://www.lihaoyi.com/Ammonite/"; + license = licenses.mit; + 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"; + }; } |