Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
78 lines
1.5 KiB
Nix
78 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
|
|
jq,
|
|
moreutils,
|
|
pnpm_10,
|
|
nodejs,
|
|
cargo-tauri,
|
|
pkg-config,
|
|
wrapGAppsHook3,
|
|
|
|
glib-networking,
|
|
libsoup_3,
|
|
openssl,
|
|
webkitgtk_4_1,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "gale";
|
|
version = "1.10.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Kesomannen";
|
|
repo = "gale";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-SnPYuMYdoY69CWMztuDxw0ohRDU2uECNhBs46hLg+eA=";
|
|
};
|
|
|
|
postPatch = ''
|
|
jq '.bundle.createUpdaterArtifacts = false' src-tauri/tauri.conf.json | sponge src-tauri/tauri.conf.json
|
|
'';
|
|
|
|
pnpmDeps = pnpm_10.fetchDeps {
|
|
inherit (finalAttrs) pname version src;
|
|
fetcherVersion = 1;
|
|
hash = "sha256-DYhPe59qfsSjyMIN31RL0mrHfmE6/I1SF+XutettkO8=";
|
|
};
|
|
|
|
cargoRoot = "src-tauri";
|
|
buildAndTestSubdir = finalAttrs.cargoRoot;
|
|
|
|
cargoHash = "sha256-tWQRYD6hMU7cvtelGryLdpfoEnUKYt7yYNwHTFZ4pLw=";
|
|
|
|
nativeBuildInputs = [
|
|
jq
|
|
moreutils
|
|
pnpm_10.configHook
|
|
nodejs
|
|
cargo-tauri.hook
|
|
pkg-config
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
buildInputs = [
|
|
glib-networking # needed to load icons
|
|
libsoup_3
|
|
openssl
|
|
webkitgtk_4_1
|
|
];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Lightweight Thunderstore client";
|
|
homepage = "https://github.com/Kesomannen/gale";
|
|
license = lib.licenses.gpl3Only;
|
|
mainProgram = "gale";
|
|
maintainers = with lib.maintainers; [
|
|
tomasajt
|
|
notohh
|
|
];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|