depot/third_party/nixpkgs/pkgs/development/tools/nufmt/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

33 lines
728 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
rustPlatform,
darwin,
...
}:
rustPlatform.buildRustPackage rec {
pname = "nufmt";
version = "unstable-2023-09-25";
src = fetchFromGitHub {
owner = "nushell";
repo = "nufmt";
rev = "796ee834c1e31ead4c5479bf2827a4339c5d61d1";
hash = "sha256-BwKLl8eMCrqVt9PA5SHAXxu3ypP2ePcSuljKL+wSkvw=";
};
buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
IOKit
]);
cargoSha256 = "sha256-16Z20opeZpoa7h258um+grL3ktPmY4P0M/tqMTr5hYc=";
meta = with lib; {
description = "Nushell formatter";
homepage = "https://github.com/nushell/nufmt";
license = licenses.mit;
maintainers = with maintainers; [iogamaster];
};
}