mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
39 lines
887 B
Nix
39 lines
887 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
darwin,
|
|
nix-update-script,
|
|
...
|
|
}:
|
|
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.hostPlatform.isDarwin (
|
|
with darwin.apple_sdk.frameworks;
|
|
[
|
|
IOKit
|
|
]
|
|
);
|
|
|
|
cargoHash = "sha256-16Z20opeZpoa7h258um+grL3ktPmY4P0M/tqMTr5hYc=";
|
|
passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };
|
|
|
|
meta = {
|
|
description = "Nushell formatter";
|
|
homepage = "https://github.com/nushell/nufmt";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ iogamaster ];
|
|
mainProgram = "nufmt";
|
|
};
|
|
}
|