From 503dd0cecb3968cf4a745cf0757f3d69e797abd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Koz=C5=82owski?= Date: Tue, 19 Oct 2021 22:40:38 +0200 Subject: [PATCH] coursier: Rename binary to cs --- .../doc/manual/from_md/release-notes/rl-2111.section.xml | 9 +++++++++ nixos/doc/manual/release-notes/rl-2111.section.md | 2 ++ pkgs/development/tools/coursier/default.nix | 8 ++++---- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/nixos/doc/manual/from_md/release-notes/rl-2111.section.xml b/nixos/doc/manual/from_md/release-notes/rl-2111.section.xml index f3a5db5fb1c867..d1b1754abbc0d5 100644 --- a/nixos/doc/manual/from_md/release-notes/rl-2111.section.xml +++ b/nixos/doc/manual/from_md/release-notes/rl-2111.section.xml @@ -1128,6 +1128,15 @@ Superuser created successfully. would be parsed as 3 parameters. + + + The coursier package’s binary was renamed + from coursier to cs. + Completions which haven’t worked for a while should now work + with the renamed binary. To keep using + coursier, you can create a shell alias. + +
diff --git a/nixos/doc/manual/release-notes/rl-2111.section.md b/nixos/doc/manual/release-notes/rl-2111.section.md index c1958b3a6bd4c3..aed55234a3ec6a 100644 --- a/nixos/doc/manual/release-notes/rl-2111.section.md +++ b/nixos/doc/manual/release-notes/rl-2111.section.md @@ -348,6 +348,8 @@ In addition to numerous new and upgraded packages, this release has the followin - `boot.kernelParams` now only accepts one command line parameter per string. This change is aimed to reduce common mistakes like "param = 12", which would be parsed as 3 parameters. +- The `coursier` package's binary was renamed from `coursier` to `cs`. Completions which haven't worked for a while should now work with the renamed binary. To keep using `coursier`, you can create a shell alias. + ## Other Notable Changes {#sec-release-21.11-notable-changes} diff --git a/pkgs/development/tools/coursier/default.nix b/pkgs/development/tools/coursier/default.nix index 64c48b702cf12a..85f7e603bbb0c2 100644 --- a/pkgs/development/tools/coursier/default.nix +++ b/pkgs/development/tools/coursier/default.nix @@ -25,12 +25,12 @@ in stdenv.mkDerivation rec { nativeBuildInputs = [ makeWrapper ]; buildCommand = '' - install -Dm555 $src $out/bin/coursier - patchShebangs $out/bin/coursier - wrapProgram $out/bin/coursier --prefix PATH ":" ${jre}/bin + install -Dm555 $src $out/bin/cs + patchShebangs $out/bin/cs + wrapProgram $out/bin/cs --prefix PATH ":" ${jre}/bin # copy zsh completion - install -Dm755 ${zshCompletion} $out/share/zsh/site-functions/_coursier + install -Dm755 ${zshCompletion} $out/share/zsh/site-functions/_cs ''; passthru.updateScript = writeScript "update.sh" ''