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-09-16 16:28:34 +02:00
version = "0.6.0";
2019-08-23 16:12:50 +02:00
src = fetchFromGitHub {
owner = "nix-community";
repo = pname;
rev = "v${version}";
2019-09-16 16:28:34 +02:00
sha256 = "18kvsgl3kpla33dp1nbpd1kdgndfqcmlwwpjls55fp4mlczf8lcx";
2019-08-23 16:12:50 +02:00
};
2019-09-07 23:54:30 +02:00
cargoSha256 = "0wfx7shsdqrwbnzr2a0fnly1kd93mxbm96zjq5pzrq94lphkhqhz";
2019-08-23 16:12:50 +02: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 ];
};
}