nixpkgs/pkgs/tools/nix/nixpkgs-fmt/default.nix

22 lines
590 B
Nix
Raw Normal View History

2019-08-23 16:12:50 +02:00
{ lib, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
pname = "nixpkgs-fmt";
2019-08-24 14:27:53 +02:00
version = "0.3.1";
2019-08-23 16:12:50 +02:00
src = fetchFromGitHub {
owner = "nix-community";
repo = pname;
rev = "v${version}";
2019-08-24 14:27:53 +02:00
sha256 = "0nz4njmrwacizz9z89ligxr2gyggk65vq9cmd6s4hn133gajf2n1";
2019-08-23 16:12:50 +02:00
};
cargoSha256 = "0p3qa1asdvw2npav4281lzndjczrzac6fr8z4y61m7rbn363s8sa";
meta = with lib; {
description = "Nix code formatter for nixpkgs";
homepage = "https://nix-community.github.io/nixpkgs-fmt";
license = licenses.asl20;
maintainers = with maintainers; [ zimbatm ];
};
}