nixpkgs/pkgs/by-name/nu/nufmt/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
928 B
Nix
Raw Permalink Normal View History

{
lib,
2024-05-18 06:58:38 -06:00
stdenv,
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-11-30 06:39:09 -07:00
2024-10-31 09:09:43 -06:00
rustPlatform.buildRustPackage {
pname = "nufmt";
version = "0-unstable-2024-11-21";
src = fetchFromGitHub {
owner = "nushell";
repo = "nufmt";
rev = "628a3b73ea637c96f2c191ae066cf1cecadeafa3";
hash = "sha256-ideILLOawU6BNawmr4lqt2LGkf29wvlwQe9gqgdYRiI=";
};
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
cargoHash = "sha256-MHZlXmHAYIiaB6Isutqjrh45jppRzTZRSE3VqzpFBBA=";
2024-10-14 15:18:12 -06:00
passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };
2024-10-14 11:31:26 -06:00
meta = {
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";
};
}