Merge pull request #204143 from figsoda/topiary

This commit is contained in:
Sandro 2022-12-02 20:37:29 +01:00 committed by GitHub
commit dd49966d43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,28 @@
{ lib, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
pname = "topiary";
version = "unstable-2022-12-02";
src = fetchFromGitHub {
owner = "tweag";
repo = pname;
rev = "ae861a30097bd6297f553eb0ea2597f86f16d156";
sha256 = "sha256-WVrl+LxWSbHkbFGbkUhmw4Klwg6CzfnLAz8F0mF0kb8=";
};
cargoSha256 = "sha256-qoCOcYp1NYz/YhIBP6AkCCudVLpqhztRehc2xZoYp9A=";
postInstall = ''
install -Dm444 languages/* -t $out/share/languages
'';
TOPIARY_LANGUAGE_DIR = "${placeholder "out"}/share/languages";
meta = with lib; {
description = "A uniform formatter for simple languages, as part of the Tree-sitter ecosystem";
homepage = "https://github.com/tweag/topiary";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
};
}

View file

@ -12246,6 +12246,8 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) AppKit Cocoa Foundation;
};
topiary = callPackage ../development/tools/misc/topiary { };
todo = callPackage ../tools/misc/todo { };
tor = callPackage ../tools/security/tor { };