fnm: init at 1.26.0 (#130788)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
35
pkgs/development/tools/fnm/default.nix
Normal file
35
pkgs/development/tools/fnm/default.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ lib, stdenv, fetchFromGitHub, rustPlatform, installShellFiles, Security }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "fnm";
|
||||
version = "1.26.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Schniz";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-wKtgMUt7QquT6mS3AI+XrZqbJOZxj6jlJi+7uC9w7xU=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
|
||||
|
||||
cargoSha256 = "sha256-TMhhCVVFTanKdbDp7L3ZaiNohWo5a/jFbQjdRiBlCkk=";
|
||||
|
||||
doCheck = false;
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion --cmd fnm \
|
||||
--bash <($out/bin/fnm completions --shell bash) \
|
||||
--fish <($out/bin/fnm completions --shell fish) \
|
||||
--zsh <($out/bin/fnm completions --shell zsh)
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Fast and simple Node.js version manager";
|
||||
homepage = "https://github.com/Schniz/fnm";
|
||||
license = licenses.gpl3Only;
|
||||
maintainers = with maintainers; [ kidonng ];
|
||||
};
|
||||
}
|
||||
@@ -10921,6 +10921,10 @@ with pkgs;
|
||||
recurseIntoAttrs (callPackage ../development/compilers/flutter { });
|
||||
flutter = flutterPackages.stable;
|
||||
|
||||
fnm = callPackage ../development/tools/fnm {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
|
||||
fnlfmt = callPackage ../development/tools/fnlfmt { };
|
||||
|
||||
fpc = callPackage ../development/compilers/fpc { };
|
||||
|
||||
Reference in New Issue
Block a user