3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/nix/nixpkgs-fmt/default.nix

22 lines
590 B
Nix
Raw Normal View History

2019-08-23 15:12:50 +01:00
{ lib, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
pname = "nixpkgs-fmt";
2020-03-05 08:28:11 +00:00
version = "0.7.0";
2019-08-23 15:12:50 +01:00
src = fetchFromGitHub {
owner = "nix-community";
repo = pname;
rev = "v${version}";
2020-03-05 08:28:11 +00:00
sha256 = "0b9wwv77bpq24yxky44ndgvxsx2zgsl15lvl6wklbkr41mwz3xis";
2019-08-23 15:12:50 +01:00
};
2020-03-05 08:28:11 +00:00
cargoSha256 = "1vv2gypbmgd9lksrk5h2z3agcs1269p1i3im9529nhcsl62ckj7n";
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 ];
};
}