diff options
author | Jonas Chevalier <zimbatm@zimbatm.com> | 2021-04-25 12:11:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-25 10:11:42 +0000 |
commit | b8ef16dc1e9d07f14be191d020048630079e5235 (patch) | |
tree | 70c4b1d2807dcd647f16fad0e8ab98011c11d3c7 /pkgs/development/tools/treefmt | |
parent | d4f48c85476b2a7227e587c9a9cfb3b9b41af554 (diff) | |
download | nixpkgs-b8ef16dc1e9d07f14be191d020048630079e5235.tar nixpkgs-b8ef16dc1e9d07f14be191d020048630079e5235.tar.gz nixpkgs-b8ef16dc1e9d07f14be191d020048630079e5235.tar.bz2 nixpkgs-b8ef16dc1e9d07f14be191d020048630079e5235.tar.lz nixpkgs-b8ef16dc1e9d07f14be191d020048630079e5235.tar.xz nixpkgs-b8ef16dc1e9d07f14be191d020048630079e5235.tar.zst nixpkgs-b8ef16dc1e9d07f14be191d020048630079e5235.zip |
treefmt: init at 0.1.1 (#120521)
* treefmt: init at 0.1.1 * Update pkgs/top-level/all-packages.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> * Update pkgs/development/tools/treefmt/default.nix Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/development/tools/treefmt')
-rw-r--r-- | pkgs/development/tools/treefmt/default.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/pkgs/development/tools/treefmt/default.nix b/pkgs/development/tools/treefmt/default.nix new file mode 100644 index 00000000000..c90492c6aec --- /dev/null +++ b/pkgs/development/tools/treefmt/default.nix @@ -0,0 +1,21 @@ +{ lib, rustPlatform, fetchFromGitHub }: +rustPlatform.buildRustPackage rec { + pname = "treefmt"; + version = "0.1.1"; + + src = fetchFromGitHub { + owner = "numtide"; + repo = "treefmt"; + rev = "v${version}"; + sha256 = "0a4yikkqppawii1q0kzsxwfp1aid688wa0lixjwfsl279lr69css"; + }; + + cargoSha256 = "08k60gd23yanfraxpbw9hi7jbqgsxz9mv1ci6q9piis5742zlj9s"; + + meta = { + description = "one CLI to format the code tree"; + homepage = "https://github.com/numtide/treefmt"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ zimbatm ]; + }; +} |