2019-08-23 15:12:50 +01:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "nixpkgs-fmt";
|
2020-04-26 02:38:44 +01:00
|
|
|
version = "0.8.0";
|
2019-08-23 15:12:50 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nix-community";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-04-26 02:38:44 +01:00
|
|
|
sha256 = "09lhi8aidw9qf94n07mgs2nfac32a96wkx50glj35dhn06iwzwqr";
|
2019-08-23 15:12:50 +01:00
|
|
|
};
|
|
|
|
|
2020-04-26 02:38:44 +01:00
|
|
|
cargoSha256 = "15m40d9354412h51zn806pxsqjai48xiw8chf8slbi0cjxd268j9";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|