clevis: add various packages to wrapper

This commit is contained in:
Nick Cao 2022-08-02 09:45:29 +08:00
parent aebe57d365
commit 313205f8cd
No known key found for this signature in database
GPG Key ID: 068A56CEF48FA2C1

View File

@ -1,6 +1,21 @@
{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, asciidoc { lib
, makeWrapper, jansson, jose, cryptsetup, curl, libpwquality, luksmeta , stdenv
, coreutils, tpm2-tools , fetchFromGitHub
, meson
, ninja
, pkg-config
, asciidoc
, makeWrapper
, jansson
, jose
, cryptsetup
, curl
, libpwquality
, luksmeta
, coreutils
, tpm2-tools
, gnugrep
, gnused
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -24,7 +39,7 @@ stdenv.mkDerivation rec {
postInstall = '' postInstall = ''
# We wrap the main clevis binary entrypoint but not the sub-binaries. # We wrap the main clevis binary entrypoint but not the sub-binaries.
wrapProgram $out/bin/clevis \ wrapProgram $out/bin/clevis \
--prefix PATH ':' "${tpm2-tools}/bin:${jose}/bin:${placeholder "out"}/bin" --prefix PATH ':' "${lib.makeBinPath [tpm2-tools jose cryptsetup libpwquality luksmeta gnugrep gnused coreutils]}:${placeholder "out"}/bin"
''; '';
nativeBuildInputs = [ meson ninja pkg-config asciidoc makeWrapper ]; nativeBuildInputs = [ meson ninja pkg-config asciidoc makeWrapper ];