2020-05-03 00:36:49 +01:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, fetchpatch }:
|
2019-08-23 15:12:50 +01:00
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "nixpkgs-fmt";
|
2020-05-07 10:28:04 +01:00
|
|
|
version = "0.9.0";
|
2019-08-23 15:12:50 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nix-community";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-05-07 10:28:04 +01:00
|
|
|
sha256 = "1kkw87c63nx5pqsxcwn6iw27k02j9ls21zyhb5dvf0zaqd9sz7ad";
|
2019-08-23 15:12:50 +01:00
|
|
|
};
|
2020-07-31 05:08:19 +01:00
|
|
|
|
2020-05-07 10:28:04 +01:00
|
|
|
cargoSha256 = "1wybvm9qckx9cd656gx9zrbszmaj66ihh2kk6qqdb6maixcq5k0x";
|
2019-08-23 15:12:50 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|