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-08-17 09:04:46 +01:00
|
|
|
version = "1.0.0";
|
2019-08-23 15:12:50 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nix-community";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-08-18 14:18:59 +01:00
|
|
|
sha256 = "0w1himwix7iv40rixj9afknwmqg2qmkif23z217gc7x63zyg9vdc";
|
2019-08-23 15:12:50 +01:00
|
|
|
};
|
2020-07-31 05:08:19 +01:00
|
|
|
|
2020-08-18 14:18:59 +01:00
|
|
|
cargoSha256 = "1qzhii72hjdxmgfncvyk80ybvk6zywd6v73bb1ibhnry734grzvw";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|