Unverified Commit 5b30cb2a authored by Matthew Croughan's avatar Matthew Croughan Committed by GitHub
Browse files

yubihsm-shell: fix compile (#452514)

parents d35dc5a9 983d3bd8
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchFromGitHub,
  fetchpatch,
  cmake,
  openssl,
  libusb1,
@@ -25,6 +26,13 @@ stdenv.mkDerivation rec {
    hash = "sha256-ymGS35kjhNlFee3FEXF8n6Jm7NVaynjv+lpix6F75BQ=";
  };

  patches = [
    (fetchpatch {
      url = "https://github.com/Yubico/yubihsm-shell/pull/493.patch";
      hash = "sha256-mM4ef1GV7BJT+EZ8B7+ejleTocglhxCWO/RKHZN69GE=";
    })
  ];

  postPatch = ''
    # Can't find libyubihsm at runtime because of dlopen() in C code
    substituteInPlace lib/yubihsm.c \
@@ -65,7 +73,10 @@ stdenv.mkDerivation rec {
  meta = with lib; {
    description = "Thin wrapper around libyubihsm providing both an interactive and command-line interface to a YubiHSM";
    homepage = "https://github.com/Yubico/yubihsm-shell";
    maintainers = with maintainers; [ matthewcroughan ];
    maintainers = with maintainers; [
      matthewcroughan
      numinit
    ];
    license = licenses.asl20;
    platforms = platforms.all;
  };