signify: allow cross-compilation

This commit is contained in:
Adam Joseph 2022-02-20 22:59:53 -08:00
parent 65c8149cb1
commit 1986e43243

View file

@ -16,10 +16,12 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libbsd ];
preInstall = ''
export PREFIX=$out
postPatch = ''
substituteInPlace Makefile --replace "shell pkg-config" "shell $PKG_CONFIG"
'';
installFlags = [ "PREFIX=$(out)" ];
meta = with lib; {
description = "OpenBSD signing tool";
longDescription = ''