raccoin: init at 0.2.0

This commit is contained in:
vv01f
2025-08-31 22:53:40 +02:00
parent ecfd1bdd78
commit aa3f01e9bb
+99
View File
@@ -0,0 +1,99 @@
{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
makeWrapper,
libxkbcommon,
wayland,
cairo,
pango,
harfbuzz,
fontconfig,
freetype,
alsa-lib,
libGL,
xorg,
openssl,
nix-update-script,
withWayland ? true,
withX11 ? true,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "raccoin";
version = "0.2.0";
src = fetchFromGitHub {
owner = "bjorn";
repo = "raccoin";
tag = "v${finalAttrs.version}";
hash = "sha256-6BwRFU8qU6K0KqKdK+soKcWU2LPxkKKPOcn2gupunGg=";
};
cargoHash = "sha256-pz3dwIIBQZIwTammiI/UQwM0Iy1ZgC9ntK+qNGv3s24=";
nativeBuildInputs = [
pkg-config
makeWrapper
];
buildInputs = [
cairo
pango
harfbuzz
fontconfig
freetype
alsa-lib
libGL
openssl
libxkbcommon
]
++ lib.optionals withWayland [
wayland
]
++ lib.optionals withX11 [
xorg.libX11
xorg.libXcursor
xorg.libXi
xorg.libXrandr
];
# upstream has no tests
doCheck = false;
# alternatively when tests are added later
#doCheck = true;
#checkPhase = ''
# cargo test --lib -- --nocapture
#'';
#passthru.tests.version = testers.testVersion { package = raccoin; };
postFixup = ''
patchelf --set-rpath "${
lib.makeLibraryPath (
[
fontconfig
libxkbcommon
openssl
]
++ lib.optional withX11 xorg.libX11
)
}" \
$out/bin/raccoin
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "Crypto portfolio & capital-gains reporting tool (Rust + Slint)";
longDescription = ''
This GUI Tool enables accounting with the quite basic principle
"first in, first out" (FIFO) in multiple wallets. It is for
e.g. bitcoiners that actually use the currency and want
reports on their holdings.
'';
homepage = "https://raccoin.org";
changelog = "https://github.com/bjorn/raccoin/releases/tag/v${finalAttrs.version}";
license = lib.licenses.gpl3Plus;
mainProgram = "raccoin";
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ vv01f ];
};
})