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

22 lines
602 B
Nix
Raw Normal View History

{ lib, rustPlatform, fetchFromGitHub, fetchpatch }:
2019-08-23 15:12:50 +01:00
rustPlatform.buildRustPackage rec {
pname = "nixpkgs-fmt";
2020-08-17 09:04:46 +01:00
version = "1.0.0";
2019-08-23 15:12:50 +01:00
src = fetchFromGitHub {
owner = "nix-community";
repo = pname;
rev = "v${version}";
2020-08-18 14:18:59 +01:00
sha256 = "0w1himwix7iv40rixj9afknwmqg2qmkif23z217gc7x63zyg9vdc";
2019-08-23 15:12:50 +01:00
};
2020-08-18 14:18:59 +01:00
cargoSha256 = "1qzhii72hjdxmgfncvyk80ybvk6zywd6v73bb1ibhnry734grzvw";
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 ];
};
}