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 ]; nativeBuildInputs = [ pkg-config ];
buildInputs = [ libbsd ]; buildInputs = [ libbsd ];
preInstall = '' postPatch = ''
export PREFIX=$out substituteInPlace Makefile --replace "shell pkg-config" "shell $PKG_CONFIG"
''; '';
installFlags = [ "PREFIX=$(out)" ];
meta = with lib; { meta = with lib; {
description = "OpenBSD signing tool"; description = "OpenBSD signing tool";
longDescription = '' longDescription = ''