nixpkgs/pkgs/tools/nix/nixpkgs-fmt/default.nix

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

23 lines
621 B
Nix
Raw Normal View History

{ lib, rustPlatform, fetchFromGitHub }:
2019-08-23 17:12:50 +03:00
rustPlatform.buildRustPackage rec {
pname = "nixpkgs-fmt";
version = "1.3.0";
2019-08-23 17:12:50 +03:00
src = fetchFromGitHub {
owner = "nix-community";
repo = pname;
rev = "v${version}";
sha256 = "sha256-6Ut4/ix915EoaPCewoG3KhKBA+OaggpDqnx2nvKxEpQ=";
2019-08-23 17:12:50 +03:00
};
cargoSha256 = "sha256-yIwCBm46sgrpTt45uCyyS7M6V0ReGUXVu7tyrjdNqeQ=";
2019-08-23 17:12:50 +03:00
meta = with lib; {
description = "Nix code formatter for nixpkgs";
homepage = "https://nix-community.github.io/nixpkgs-fmt";
license = licenses.asl20;
maintainers = with maintainers; [ zimbatm ];
2023-08-03 18:36:59 +03:00
mainProgram = "nixpkgs-fmt";
2019-08-23 17:12:50 +03:00
};
}