@@ -32,7 +32,7 @@ stdenv.mkDerivation rec {
3232 # as libwally-core detects the host as darwin and tries to add the -static
3333 # option to libtool, also we have to add the modified gsed package.
3434 nativeBuildInputs = [ autogen autoconf automake gettext pkg-config py3 unzip which ]
35− ++ lib.optionals stdenv.isDarwin [ darwin.cctools ] ++ [ libtool ];
35+ ++ lib.optionals stdenv.isDarwin [ darwin.cctools darwin.autoSignDarwinBinariesHook ] ++ [ libtool ];
3636
3737 buildInputs = [ gmp libsodium sqlite zlib ];
3838
@@ -66,6 +66,6 @@ stdenv.mkDerivation rec {
6666 homepage = "https://github.com/ElementsProject/lightning";
6767 maintainers = with maintainers; [ jb55 prusnak ];
6868 license = licenses.mit;
69− platforms = platforms.linux ++ [ "x86_64-darwin" ];
69+ platforms = platforms.linux ++ platforms.darwin;
7070 };
7171}