2021-02-21 23:38:03 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub }:
|
2019-08-23 14:12:50 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "nixpkgs-fmt";
|
2022-06-18 04:14:46 +00:00
|
|
|
version = "1.3.0";
|
2019-08-23 14:12:50 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nix-community";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-06-18 04:14:46 +00:00
|
|
|
sha256 = "sha256-6Ut4/ix915EoaPCewoG3KhKBA+OaggpDqnx2nvKxEpQ=";
|
2019-08-23 14:12:50 +00:00
|
|
|
};
|
2020-07-31 04:08:19 +00:00
|
|
|
|
2024-07-02 09:04:59 +00:00
|
|
|
cargoHash = "sha256-yIwCBm46sgrpTt45uCyyS7M6V0ReGUXVu7tyrjdNqeQ=";
|
2019-08-23 14:12:50 +00: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 15:36:59 +00:00
|
|
|
mainProgram = "nixpkgs-fmt";
|
2019-08-23 14:12:50 +00:00
|
|
|
};
|
|
|
|
}
|