3
0
Fork 0
forked from mirrors/nixpkgs

topiary: Add passthru.updateScript

Allows to use standard

```
  nix-shell maintainers/scripts/update.nix --argstr package topiary
```

to update topiary
This commit is contained in:
Yuriy Taraday 2023-06-12 17:29:13 +02:00
parent 7f9f9126d6
commit a09afc8dac

View file

@ -1,6 +1,7 @@
{ lib
, rustPlatform
, fetchFromGitHub
, nix-update-script
}:
rustPlatform.buildRustPackage rec {
@ -42,6 +43,8 @@ rustPlatform.buildRustPackage rec {
install -Dm444 languages/* -t $out/share/languages
'';
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "A uniform formatter for simple languages, as part of the Tree-sitter ecosystem";
homepage = "https://github.com/tweag/topiary";