elementsd: minor refactoring

- Use pname
- urls -> url
This commit is contained in:
Erik Arvstedt 2021-02-01 22:53:02 +01:00
parent f0850d3f23
commit 41fe9b0c1d
No known key found for this signature in database
GPG Key ID: 33312B944DD97846

View File

@ -4,19 +4,19 @@
with stdenv.lib; with stdenv.lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "elements" + (toString (optional (!withGui) "d")) + "-" + version; pname = "elements${optionalString (!withGui) "d"}";
version = "0.18.1.9"; version = "0.18.1.9";
src = fetchurl { src = fetchurl {
urls = [ url = "https://github.com/ElementsProject/elements/archive/elements-${version}.tar.gz";
"https://github.com/ElementsProject/elements/archive/elements-${version}.tar.gz" # Use ./get-sha256.sh to fetch latest (verified) sha256
];
sha256 = "c6f1b040a896a1aaa7340f5cd48e119c84fef88df5d4c17d5ad5c13783f5b6c7"; sha256 = "c6f1b040a896a1aaa7340f5cd48e119c84fef88df5d4c17d5ad5c13783f5b6c7";
}; };
nativeBuildInputs = nativeBuildInputs =
[ pkgconfig autoreconfHook ] [ pkgconfig autoreconfHook ]
++ optional withGui wrapQtAppsHook; ++ optional withGui wrapQtAppsHook;
buildInputs = [ openssl db48 boost zlib zeromq buildInputs = [ openssl db48 boost zlib zeromq
miniupnpc protobuf libevent] miniupnpc protobuf libevent]
++ optionals stdenv.isLinux [ utillinux ] ++ optionals stdenv.isLinux [ utillinux ]
@ -27,8 +27,8 @@ stdenv.mkDerivation rec{
] ++ optionals (!doCheck) [ ] ++ optionals (!doCheck) [
"--disable-tests" "--disable-tests"
"--disable-gui-tests" "--disable-gui-tests"
] ] ++ optionals withGui [
++ optionals withGui [ "--with-gui=qt5" "--with-gui=qt5"
"--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin" "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin"
]; ];