From 209185b1aeb668228cecd786c82fc06ece3027ea Mon Sep 17 00:00:00 2001 From: r17x Date: Sat, 14 Dec 2024 01:48:20 +0700 Subject: [PATCH] rewatch: init at 1.0.9 see release: https://github.com/rescript-lang/rewatch/releases/tag/v1.0.9 --- pkgs/by-name/re/rewatch/package.nix | 39 +++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 pkgs/by-name/re/rewatch/package.nix diff --git a/pkgs/by-name/re/rewatch/package.nix b/pkgs/by-name/re/rewatch/package.nix new file mode 100644 index 0000000000000..b4f030c3746cc --- /dev/null +++ b/pkgs/by-name/re/rewatch/package.nix @@ -0,0 +1,39 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + nix-update-script, + apple-sdk_11, + stdenv, +}: + +rustPlatform.buildRustPackage rec { + pname = "rewatch"; + version = "1.0.9"; + + src = fetchFromGitHub { + owner = "rescript-lang"; + repo = "rewatch"; + tag = "v${version}"; + hash = "sha256-y+0tBwGa7Fjrnd3O7CwZjapgXJojfgXBZyqAW3cz1Zk="; + }; + + cargoHash = "sha256-cZTA50gm7o+vBaRNjpZI0LQkXaHIukVTBXoYMUubZgw="; + + buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ + apple-sdk_11 + ]; + + 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; + }; +}