diff options
author | zimbatm <zimbatm@zimbatm.com> | 2019-08-23 16:12:50 +0200 |
---|---|---|
committer | zimbatm <zimbatm@zimbatm.com> | 2019-08-23 16:12:50 +0200 |
commit | 79c2ed6b603550501bc684aa768616a5bf3341a2 (patch) | |
tree | 890d53fbd8a3269b1177bd95d781e6712971af48 /pkgs/tools/nix | |
parent | 7d1bd575e851e56f4cf75e7998da1600439631f4 (diff) |
nixpkgs-fmt: init at 0.2.0
Diffstat (limited to 'pkgs/tools/nix')
-rw-r--r-- | pkgs/tools/nix/nixpkgs-fmt/default.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/pkgs/tools/nix/nixpkgs-fmt/default.nix b/pkgs/tools/nix/nixpkgs-fmt/default.nix new file mode 100644 index 000000000000..34715c8673aa --- /dev/null +++ b/pkgs/tools/nix/nixpkgs-fmt/default.nix @@ -0,0 +1,21 @@ +{ lib, rustPlatform, fetchFromGitHub }: +rustPlatform.buildRustPackage rec { + pname = "nixpkgs-fmt"; + version = "0.2.0"; + + src = fetchFromGitHub { + owner = "nix-community"; + repo = pname; + rev = "v${version}"; + sha256 = "0sa0263pkpi423f1rdyg90axw9sdmgj8ma1mza0v46qzkwynwgh3"; + }; + + cargoSha256 = "0p3qa1asdvw2npav4281lzndjczrzac6fr8z4y61m7rbn363s8sa"; + + meta = with lib; { + description = "Nix code formatter for nixpkgs"; + homepage = "https://nix-community.github.io/nixpkgs-fmt"; + license = licenses.asl20; + maintainers = with maintainers; [ zimbatm ]; + }; +} |