mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-10 16:45:51 +03:00
feather: init at 2.5.2
This commit is contained in:
parent
85f1ba3e51
commit
1e0e27fbba
84
pkgs/by-name/fe/feather/package.nix
Normal file
84
pkgs/by-name/fe/feather/package.nix
Normal file
@ -0,0 +1,84 @@
|
||||
{ boost
|
||||
, cmake
|
||||
, fetchFromGitHub
|
||||
, hidapi
|
||||
, lib
|
||||
, libsodium
|
||||
, libusb1
|
||||
, openssl
|
||||
, pkg-config
|
||||
, protobuf
|
||||
, qrencode
|
||||
, qt6
|
||||
, readline
|
||||
, stdenv
|
||||
, testers
|
||||
, tor
|
||||
, unbound
|
||||
, zxing-cpp
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "feather";
|
||||
version = "2.5.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "feather-wallet";
|
||||
repo = "feather";
|
||||
rev = finalAttrs.version;
|
||||
hash = "sha256-OSBG2W35GYlViwz5eXokpScrMTtPSaWAgEUNw2urm6w=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
qt6.wrapQtAppsHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
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 ];
|
||||
};
|
||||
})
|
Loading…
Reference in New Issue
Block a user