2023-12-17 19:29:20 +00:00
|
|
|
{ bc-ur
|
|
|
|
, boost
|
2023-11-05 17:01:10 +00:00
|
|
|
, cmake
|
|
|
|
, fetchFromGitHub
|
|
|
|
, hidapi
|
|
|
|
, lib
|
|
|
|
, libsodium
|
|
|
|
, libusb1
|
|
|
|
, openssl
|
|
|
|
, pkg-config
|
|
|
|
, protobuf
|
|
|
|
, qrencode
|
|
|
|
, qt6
|
|
|
|
, readline
|
|
|
|
, stdenv
|
|
|
|
, testers
|
|
|
|
, tor
|
|
|
|
, unbound
|
|
|
|
, zxing-cpp
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "feather";
|
2024-03-15 07:01:44 +00:00
|
|
|
version = "2.6.5";
|
2023-11-05 17:01:10 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "feather-wallet";
|
|
|
|
repo = "feather";
|
|
|
|
rev = finalAttrs.version;
|
2024-03-15 07:01:44 +00:00
|
|
|
hash = "sha256-HvjcjiVXTK9mZOvh91iCMf/cZ9BMlPxXjgFKYWolJ74=";
|
2023-11-05 17:01:10 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
qt6.wrapQtAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2023-12-17 19:29:20 +00:00
|
|
|
bc-ur
|
2023-11-05 17:01:10 +00:00
|
|
|
boost
|
|
|
|
hidapi
|
|
|
|
libsodium
|
|
|
|
libusb1
|
|
|
|
openssl
|
|
|
|
protobuf
|
|
|
|
qrencode
|
|
|
|
unbound
|
|
|
|
zxing-cpp
|
|
|
|
] ++ (with qt6; [
|
|
|
|
qtbase
|
|
|
|
qtmultimedia
|
|
|
|
qtsvg
|
|
|
|
qttools
|
|
|
|
qtwayland
|
|
|
|
qtwebsockets
|
|
|
|
]);
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DProtobuf_INCLUDE_DIR=${lib.getDev protobuf}/include"
|
|
|
|
"-DProtobuf_PROTOC_EXECUTABLE=${lib.getExe protobuf}"
|
|
|
|
"-DReadline_INCLUDE_DIR=${lib.getDev readline}/include/readline"
|
|
|
|
"-DReadline_LIBRARY=${lib.getLib readline}/lib/libreadline.so"
|
|
|
|
"-DReadline_ROOT_DIR=${lib.getDev readline}"
|
|
|
|
"-DTOR_DIR=${lib.makeBinPath [ tor ]}"
|
|
|
|
"-DTOR_VERSION=${tor.version}"
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = finalAttrs.finalPackage;
|
|
|
|
command = ''
|
|
|
|
QT_QPA_PLATFORM=minimal ${finalAttrs.finalPackage.meta.mainProgram} --version
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A free Monero desktop wallet";
|
|
|
|
homepage = "https://featherwallet.org/";
|
|
|
|
changelog = "https://featherwallet.org/changelog/#${finalAttrs.version}%20changelog";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
mainProgram = "feather";
|
|
|
|
maintainers = with maintainers; [ surfaceflinger ];
|
|
|
|
};
|
|
|
|
})
|