1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
{
lib,
fetchFromGitHub,
rustPlatform,
cargo-tauri,
nodejs,
pnpm,
pkg-config,
wrapGAppsHook3,
openssl,
libsoup_2_4,
webkitgtk_4_1,
glib-networking,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "aonsoku";
version = "0.8.3";
src = fetchFromGitHub {
owner = "victoralvesf";
repo = "aonsoku";
tag = "v${finalAttrs.version}";
hash = "sha256-A1U1ubprwYJvyqTe5gVYTo8687sfP/76GfA+2EmtoCo=";
};
pnpmDeps = pnpm.fetchDeps {
inherit (finalAttrs) pname version src;
hash = "sha256-BMEBJRycmOgsI1loTPTNY1dVOJ0HTCnzg0QyNAzZMn4=";
};
cargoRoot = "src-tauri";
buildAndTestSubdir = finalAttrs.cargoRoot;
useFetchCargoVendor = true;
cargoHash = "sha256-yuKaf05bQFah3MTC0eF82pMmTJrllWfUKX3SdIWbPjM=";
patches = [ ./remove_updater.patch ];
nativeBuildInputs = [
nodejs
pnpm.configHook
cargo-tauri.hook
pkg-config
wrapGAppsHook3
];
buildInputs = [
openssl
libsoup_2_4
webkitgtk_4_1
glib-networking
];
passthru.updateScript = nix-update-script { };
meta = {
description = "Modern desktop client for Navidrome/Subsonic servers";
homepage = "https://github.com/victoralvesf/aonsoku";
changelog = "https://github.com/victoralvesf/aonsoku/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ genga898 ];
mainProgram = "Aonsoku";
};
})
|