From 498edffe99571de2bd3f7ecbf5692bdf67868f27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 14 Nov 2025 02:05:27 +0100 Subject: [PATCH] unixtools.more: fix accessing version on darwin --- pkgs/top-level/unixtools.nix | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/pkgs/top-level/unixtools.nix b/pkgs/top-level/unixtools.nix index 58caab387c5c..4aea1b23e347 100644 --- a/pkgs/top-level/unixtools.nix +++ b/pkgs/top-level/unixtools.nix @@ -71,10 +71,17 @@ let # more is unavailable in darwin # so we just use less - more_compat = runCommand pkgs.less.name { } '' - mkdir -p $out/bin - ln -s ${pkgs.less}/bin/less $out/bin/more - ''; + more_compat = + runCommand pkgs.less.name + { + passthru = { + inherit (pkgs.less) version; + }; + } + '' + mkdir -p $out/bin + ln -s ${pkgs.less}/bin/less $out/bin/more + ''; bins = mapAttrs singleBinary { # singular binaries