clightning: improve build setup

- Simpler
- Allows modifying the configurePhase via `configureFlags`
This commit is contained in:
Erik Arvstedt 2021-11-18 18:43:16 +01:00
parent 7c5cadc3ce
commit b7879b343a
No known key found for this signature in database
GPG Key ID: 33312B944DD97846

View File

@ -39,11 +39,9 @@ stdenv.mkDerivation rec {
devtools/sql-rewrite.py
'';
configurePhase = ''
./configure --prefix=$out --disable-developer --disable-valgrind
'';
configureFlags = [ "--disable-developer" "--disable-valgrind" ];
makeFlags = [ "prefix=$(out) VERSION=v${version}" ];
makeFlags = [ "VERSION=v${version}" ];
enableParallelBuilding = true;