2021-02-21 23:38:03 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub }:
|
2019-08-23 15:12:50 +01:00
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "nixpkgs-fmt";
|
2021-02-21 18:39:48 +00:00
|
|
|
version = "1.1.0";
|
2019-08-23 15:12:50 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nix-community";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-02-21 18:39:48 +00:00
|
|
|
sha256 = "sha256-99rYdyDLAdY2JCy/x4wYksrV8mhKPERYjWNh4UOtYrk=";
|
2019-08-23 15:12:50 +01:00
|
|
|
};
|
2020-07-31 05:08:19 +01:00
|
|
|
|
2021-02-21 18:39:48 +00:00
|
|
|
cargoSha256 = "sha256-9XmCZwLzaX61HJWRSi7wf7BdLCOMFYIVXiDNYYfUTlk=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|