Merge pull request #204143 from figsoda/topiary
This commit is contained in:
commit
dd49966d43
28
pkgs/development/tools/misc/topiary/default.nix
Normal file
28
pkgs/development/tools/misc/topiary/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue