2024-03-25 07:04:12 -06:00
|
|
|
{
|
|
|
|
lib,
|
2024-05-18 06:58:38 -06:00
|
|
|
stdenv,
|
2024-03-25 07:04:12 -06:00
|
|
|
fetchFromGitHub,
|
|
|
|
rustPlatform,
|
2024-10-31 09:09:43 -06:00
|
|
|
apple-sdk_11,
|
2024-10-14 15:18:12 -06:00
|
|
|
nix-update-script,
|
2024-03-25 07:04:12 -06:00
|
|
|
}:
|
2024-11-30 06:39:09 -07:00
|
|
|
|
2024-10-31 09:09:43 -06:00
|
|
|
rustPlatform.buildRustPackage {
|
2024-03-25 07:04:12 -06:00
|
|
|
pname = "nufmt";
|
2024-11-29 21:29:24 -07:00
|
|
|
version = "0-unstable-2024-11-21";
|
2024-03-25 07:04:12 -06:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nushell";
|
|
|
|
repo = "nufmt";
|
2024-11-29 21:29:24 -07:00
|
|
|
rev = "628a3b73ea637c96f2c191ae066cf1cecadeafa3";
|
|
|
|
hash = "sha256-ideILLOawU6BNawmr4lqt2LGkf29wvlwQe9gqgdYRiI=";
|
2024-03-25 07:04:12 -06:00
|
|
|
};
|
|
|
|
|
2024-11-30 06:39:09 -07:00
|
|
|
nativeBuildInputs = [
|
|
|
|
rustPlatform.bindgenHook
|
|
|
|
];
|
|
|
|
|
2024-10-31 09:09:43 -06:00
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
|
|
|
|
apple-sdk_11
|
|
|
|
];
|
2024-05-18 06:58:38 -06:00
|
|
|
|
2024-11-29 21:29:24 -07:00
|
|
|
cargoHash = "sha256-MHZlXmHAYIiaB6Isutqjrh45jppRzTZRSE3VqzpFBBA=";
|
2024-10-15 08:06:06 -06:00
|
|
|
|
2024-10-14 15:18:12 -06:00
|
|
|
passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };
|
2024-03-25 07:04:12 -06:00
|
|
|
|
2024-10-14 11:31:26 -06:00
|
|
|
meta = {
|
2024-03-25 07:04:12 -06:00
|
|
|
description = "Nushell formatter";
|
|
|
|
homepage = "https://github.com/nushell/nufmt";
|
2024-10-14 11:31:26 -06:00
|
|
|
license = lib.licenses.mit;
|
2024-10-15 08:10:36 -06:00
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
iogamaster
|
|
|
|
khaneliman
|
|
|
|
];
|
2024-10-14 11:30:54 -06:00
|
|
|
mainProgram = "nufmt";
|
2024-03-25 07:04:12 -06:00
|
|
|
};
|
|
|
|
}
|