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";
|
2021-03-29 11:25:10 +00:00
|
|
|
version = "1.2.0";
|
2019-08-23 14:12:50 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nix-community";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-03-29 11:25:10 +00:00
|
|
|
sha256 = "0dqirvn8pq6ssxjlf6rkqcsx6ndasws93lz2v9f9s01k9ny8x8mq";
|
2019-08-23 14:12:50 +00:00
|
|
|
};
|
2020-07-31 04:08:19 +00:00
|
|
|
|
2021-05-07 11:00:49 +00:00
|
|
|
cargoSha256 = "0mm79hfh8p1rs02pkpcv25p59b24q1rymwh11yxry4d4f12b6aw0";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|