git.iko.soy/typeable/nixpkgs
on master help sign in
fnm: init at 1.26.0 (#130788)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>

commitfe01052444c1d66ed6ef76df2af798c9769e9e79 authorKid <44045911+kidonng@users.noreply.github.com> dateTue 10 Aug 2021, 22:31 (5 years ago) parente4aad33
2 files changed+39
pkgs/development/tools/fnm/default.nix+35 pkgs/top-level/all-packages.nix+4
pkgs/development/tools/fnm/default.nixnew file+35
@@ -0,0 +1,35 @@
1+{ lib, stdenv, fetchFromGitHub, rustPlatform, installShellFiles, Security }:
2+
3+rustPlatform.buildRustPackage rec {
4+ pname = "fnm";
5+ version = "1.26.0";
6+
7+ src = fetchFromGitHub {
8+ owner = "Schniz";
9+ repo = pname;
10+ rev = "v${version}";
11+ sha256 = "sha256-wKtgMUt7QquT6mS3AI+XrZqbJOZxj6jlJi+7uC9w7xU=";
12+ };
13+
14+ nativeBuildInputs = [ installShellFiles ];
15+
16+ buildInputs = lib.optionals stdenv.isDarwin [ Security ];
17+
18+ cargoSha256 = "sha256-TMhhCVVFTanKdbDp7L3ZaiNohWo5a/jFbQjdRiBlCkk=";
19+
20+ doCheck = false;
21+
22+ postInstall = ''
23+ installShellCompletion --cmd fnm \
24+ --bash <($out/bin/fnm completions --shell bash) \
25+ --fish <($out/bin/fnm completions --shell fish) \
26+ --zsh <($out/bin/fnm completions --shell zsh)
27+ '';
28+
29+ meta = with lib; {
30+ description = "Fast and simple Node.js version manager";
31+ homepage = "https://github.com/Schniz/fnm";
32+ license = licenses.gpl3Only;
33+ maintainers = with maintainers; [ kidonng ];
34+ };
35+}
pkgs/top-level/all-packages.nix+4
@@ -10921,6 +10921,10 @@ with pkgs;
1092110921 recurseIntoAttrs (callPackage ../development/compilers/flutter { });
1092210922 flutter = flutterPackages.stable;
1092310923
10924+ fnm = callPackage ../development/tools/fnm {
10925+ inherit (darwin.apple_sdk.frameworks) Security;
10926+ };
10927+
1092410928 fnlfmt = callPackage ../development/tools/fnlfmt { };
1092510929
1092610930 fpc = callPackage ../development/compilers/fpc { };