From 2c51fdcfe3a683b665d80ae703d3d322e0032675 Mon Sep 17 00:00:00 2001 From: nartsisss Date: Sat, 8 Nov 2025 09:05:44 +0300 Subject: [PATCH] prmt: init at 0.1.7 --- pkgs/by-name/pr/prmt/package.nix | 43 ++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 pkgs/by-name/pr/prmt/package.nix diff --git a/pkgs/by-name/pr/prmt/package.nix b/pkgs/by-name/pr/prmt/package.nix new file mode 100644 index 000000000000..d4232f7f9a97 --- /dev/null +++ b/pkgs/by-name/pr/prmt/package.nix @@ -0,0 +1,43 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + versionCheckHook, + nix-update-script, +}: +rustPlatform.buildRustPackage (finalAttrs: { + pname = "prmt"; + version = "0.1.7"; + + src = fetchFromGitHub { + repo = "prmt"; + owner = "3axap4eHko"; + tag = "v${finalAttrs.version}"; + hash = "sha256-CLSBthofkVdNE/ayecTRLtFDxtGesDuEGw1/Jutpu+c="; + }; + + cargoHash = "sha256-0TYjXpR3VyRdI+3ZIPnoaM1Mod0rXOinpByeOduKSdk="; + + # Fail to run in sandbox environment + checkFlags = map (t: "--skip ${t}") [ + "modules::path::tests::relative_path_inside_home_renders_tilde" + "modules::path::tests::relative_path_with_shared_prefix_is_not_tilde" + "test_git_module" + ]; + + nativeInstallCheckInputs = [ versionCheckHook ]; + + doInstallCheck = true; + versionCheckProgramArg = "--version"; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Ultra-fast, customizable shell prompt generator"; + homepage = "https://github.com/3axap4eHko/prmt"; + changelog = "https://github.com/3axap4eHko/prmt/releases/tag/v${finalAttrs.version}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ nartsiss ]; + mainProgram = "prmt"; + }; +})