From a1cf6208719c96a40b33ad5470f08255824eea4d Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Thu, 27 Jan 2022 08:45:38 +0000 Subject: [PATCH] mold: add trivial updater --- pkgs/development/tools/mold/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/tools/mold/default.nix b/pkgs/development/tools/mold/default.nix index d0f33d750c23..a63822428b26 100644 --- a/pkgs/development/tools/mold/default.nix +++ b/pkgs/development/tools/mold/default.nix @@ -7,6 +7,7 @@ , xxHash , zlib , openssl +, nix-update-script }: stdenv.mkDerivation rec { @@ -29,6 +30,12 @@ stdenv.mkDerivation rec { LTO = 1; makeFlags = [ "PREFIX=${placeholder "out"}" ]; + passthru = { + updateScript = nix-update-script { + attrPath = pname; + }; + }; + meta = with lib; { description = "A high performance drop-in replacement for existing unix linkers"; homepage = "https://github.com/rui314/mold";