From 85078952dc517d25aaf71d7922a31ddf50c763bf Mon Sep 17 00:00:00 2001 From: Nadir Ishiguro <23151917+nadir-ishiguro@users.noreply.github.com> Date: Tue, 17 Feb 2026 12:34:09 +0100 Subject: [PATCH] reef: init at 0.2.0 --- pkgs/by-name/re/reef/package.nix | 40 ++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 pkgs/by-name/re/reef/package.nix diff --git a/pkgs/by-name/re/reef/package.nix b/pkgs/by-name/re/reef/package.nix new file mode 100644 index 000000000000..dd4254f4557d --- /dev/null +++ b/pkgs/by-name/re/reef/package.nix @@ -0,0 +1,40 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + versionCheckHook, + nix-update-script, +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "reef"; + version = "0.2.0"; + + src = fetchFromGitHub { + owner = "ZStud"; + repo = "reef"; + tag = "v${finalAttrs.version}"; + hash = "sha256-FP7cnqYIICb4JCYk9ytvSp4yxW+xW2SUVqhELdTGLZQ="; + }; + + cargoHash = "sha256-UmazwJqsWXQK3bniDLyNCLXHrgrF3iHRPugOAkRzhv8="; + + postInstall = '' + install -Dm644 fish/functions/*.fish -t $out/share/fish/vendor_functions.d/ + install -Dm644 fish/conf.d/reef.fish -t $out/share/fish/vendor_conf.d/ + ''; + + nativeCheckInputs = [ versionCheckHook ]; + doCheck = true; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Bash compatibility layer for fish shell"; + homepage = "https://github.com/ZStud/reef"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ nadir-ishiguro ]; + mainProgram = "reef"; + platforms = lib.platforms.unix; + }; +})