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

22 lines
590 B
Nix
Raw Normal View History

{ lib, rustPlatform, fetchFromGitHub }:
2019-08-23 15:12:50 +01:00
rustPlatform.buildRustPackage rec {
pname = "nixpkgs-fmt";
2021-03-29 12:25:10 +01:00
version = "1.2.0";
2019-08-23 15:12:50 +01:00
src = fetchFromGitHub {
owner = "nix-community";
repo = pname;
rev = "v${version}";
2021-03-29 12:25:10 +01:00
sha256 = "0dqirvn8pq6ssxjlf6rkqcsx6ndasws93lz2v9f9s01k9ny8x8mq";
2019-08-23 15:12:50 +01:00
};
2021-03-29 12:25:10 +01:00
cargoSha256 = "138aq64rb08s96q3xqcmvl3ax78rhjkwfa6v9iz8ywl32066gahb";
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 ];
};
}