From d7677f70c87653a92152c538b0b22355cb20ae79 Mon Sep 17 00:00:00 2001 From: r17x Date: Fri, 13 Dec 2024 19:09:41 +0700 Subject: [PATCH] rewatch: init at 1.0.9 see release: https://github.com/rescript-lang/rewatch/releases/tag/v1.0.9 --- .../tools/rescript/rewatch/default.nix | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 pkgs/development/tools/rescript/rewatch/default.nix diff --git a/pkgs/development/tools/rescript/rewatch/default.nix b/pkgs/development/tools/rescript/rewatch/default.nix new file mode 100644 index 00000000000000..71f77ea40e4482 --- /dev/null +++ b/pkgs/development/tools/rescript/rewatch/default.nix @@ -0,0 +1,33 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + nix-update-script, +}: + +rustPlatform.buildRustPackage rec { + pname = "rewatch"; + version = "1.0.9"; + + src = fetchFromGitHub { + owner = "rescript-lang"; + repo = "rewatch"; + rev = "v${version}"; + hash = "sha256-y+0tBwGa7Fjrnd3O7CwZjapgXJojfgXBZyqAW3cz1Zk="; + }; + + cargoHash = "sha256-cZTA50gm7o+vBaRNjpZI0LQkXaHIukVTBXoYMUubZgw="; + + doCheck = true; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Alternative build system for the Rescript Compiler."; + homepage = "https://github.com/rescript-lang/rewatch"; + changelog = "https://github.com/rescript-lang/rewatch/releases/tag/v${version}"; + mainProgram = "rewatch"; + maintainers = with lib.maintainers; [ r17x ]; + license = lib.licenses.mit; + }; +}