11 rustPlatform.buildRustPackage rec {
15 src = fetchFromGitHub {
19 sha256 = "sha256-qRnxXh3m/peMNAR/EV+lkwDI+Z6komF8GGFyF5UDOFg=";
22 nativeBuildInputs = [ installShellFiles ];
24 buildInputs = lib.optionals stdenv.isDarwin [ DiskArbitration Foundation Security ];
26 cargoHash = "sha256-//DCxAC8Jf7g8SkG4NfwkM0NyWUdASuw1g4COFIY0mU=";
31 installShellCompletion --cmd fnm \
32 --bash <($out/bin/fnm completions --shell bash) \
33 --fish <($out/bin/fnm completions --shell fish) \
34 --zsh <($out/bin/fnm completions --shell zsh)
38 description = "Fast and simple Node.js version manager";
40 homepage = "https://github.com/Schniz/fnm";
41 license = licenses.gpl3Only;
42 maintainers = with maintainers; [ kidonng ];