9 rustPlatform.buildRustPackage rec {
13 src = fetchFromGitHub {
17 sha256 = "sha256-WW+jWaClDn78Fw/xj6WvnEUlBI99HA5hQFUpwsYKmbI=";
20 nativeBuildInputs = [ installShellFiles ];
22 cargoHash = "sha256-InukV9tey9fVBj2tDff9HMQ149mXJCPJ85B1fMKyIJ0=";
26 postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
27 installShellCompletion --cmd fnm \
28 --bash <($out/bin/fnm completions --shell bash) \
29 --fish <($out/bin/fnm completions --shell fish) \
30 --zsh <($out/bin/fnm completions --shell zsh)
34 description = "Fast and simple Node.js version manager";
36 homepage = "https://github.com/Schniz/fnm";
37 license = lib.licenses.gpl3Only;
38 maintainers = with lib.maintainers; [ kidonng ];