From ffdce2bf4b5b73c65a8de2cb3f5ddb7b5f577604 Mon Sep 17 00:00:00 2001 From: Kent Smith Date: Mon, 24 Feb 2025 16:43:51 -0800 Subject: [PATCH 1/2] maintainers: add coat --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index fe00f03a8a3a..da275d1ed0c1 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -4515,6 +4515,12 @@ github = "CnTeng"; githubId = 56501688; }; + coat = { + email = "kentsmith@gmail.com"; + name = "Kent Smith"; + github = "coat"; + githubId = 1661; + }; cobalt = { email = "cobalt@cobalt.rocks"; github = "Chaostheorie"; From 50696930b4bab85bd91b286d4e9baf84a4ce1af6 Mon Sep 17 00:00:00 2001 From: Kent Smith Date: Mon, 24 Feb 2025 16:44:43 -0800 Subject: [PATCH 2/2] rails-new: init at 0.5.0 --- pkgs/by-name/ra/rails-new/package.nix | 36 +++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pkgs/by-name/ra/rails-new/package.nix diff --git a/pkgs/by-name/ra/rails-new/package.nix b/pkgs/by-name/ra/rails-new/package.nix new file mode 100644 index 000000000000..8cae1865bdf5 --- /dev/null +++ b/pkgs/by-name/ra/rails-new/package.nix @@ -0,0 +1,36 @@ +{ + lib, + fetchFromGitHub, + rustPlatform, + nix-update-script, + versionCheckHook, +}: +rustPlatform.buildRustPackage rec { + pname = "rails-new"; + version = "0.5.0"; + + src = fetchFromGitHub { + owner = "rails"; + repo = "rails-new"; + tag = "v${version}"; + hash = "sha256-7hEdLu9Koi2K2EFIl530yA+BGZmATFCcBMe3htYb0rs="; + }; + + useFetchCargoVendor = true; + + cargoHash = "sha256-FrndtE9hjP1WswfOYJM4LW1UsE8S9QXthYO7P3nzs2I="; + + nativeInstallCheckInputs = [ versionCheckHook ]; + versionCheckProgramArg = "--version"; + doInstallCheck = true; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Generate new Rails applications without having to install Ruby"; + homepage = "https://github.com/rails/rails-new"; + license = lib.licenses.mit; + mainProgram = "rails-new"; + maintainers = with lib.maintainers; [ coat ]; + }; +}