From 2ed602617c68fe42dff2b5b4d09ce86b00407d90 Mon Sep 17 00:00:00 2001 From: Linus Heckemann Date: Thu, 14 Sep 2023 17:27:57 +0200 Subject: [PATCH] shim-unsigned: passthru target attribute --- pkgs/tools/misc/shim/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/tools/misc/shim/default.nix b/pkgs/tools/misc/shim/default.nix index ea13cc1bd66f..1615a6d8c794 100644 --- a/pkgs/tools/misc/shim/default.nix +++ b/pkgs/tools/misc/shim/default.nix @@ -36,6 +36,13 @@ in stdenv.mkDerivation rec { install -m 644 ${target} $out/share/shim/ ''; + passthru = { + # Expose the target file name so that consumers + # (e.g. infrastructure for signing this shim) don't need to + # duplicate the logic from here + inherit target; + }; + meta = with lib; { description = "UEFI shim loader"; homepage = "https://github.com/rhboot/shim";