nixpkgs/pkgs/by-name/ga/gale/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

77 lines
1.5 KiB
Nix
Raw Normal View History

2024-10-15 22:52:21 +02:00
{
lib,
rustPlatform,
fetchFromGitHub,
nix-update-script,
2024-10-15 22:52:21 +02:00
2025-01-12 14:27:52 +01:00
jq,
moreutils,
pnpm_10,
2024-10-15 22:52:21 +02:00
nodejs,
cargo-tauri,
pkg-config,
wrapGAppsHook3,
glib-networking,
2024-10-15 22:52:21 +02:00
libsoup_3,
openssl,
2024-10-15 22:52:21 +02:00
webkitgtk_4_1,
}:
2025-05-23 01:29:16 +02:00
rustPlatform.buildRustPackage (finalAttrs: {
2024-10-15 22:52:21 +02:00
pname = "gale";
version = "1.8.6";
2024-10-15 22:52:21 +02:00
src = fetchFromGitHub {
owner = "Kesomannen";
repo = "gale";
tag = finalAttrs.version;
hash = "sha256-5xUBW9Owyeet8Jyc+7TQr6XQTbkopbJLeyI5c35iqr0=";
2024-10-15 22:52:21 +02:00
};
2025-01-12 14:27:52 +01:00
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;
hash = "sha256-QQXP/x7AjDtUpe6h+pC6vUsIAptv1kN/1MJZjHAIdMo=";
2024-10-15 22:52:21 +02:00
};
cargoRoot = "src-tauri";
buildAndTestSubdir = finalAttrs.cargoRoot;
cargoHash = "sha256-6yWRl9WAPJoqoXm0kLfZhEf7AYD6J//FlOmDxzeknFo=";
2025-05-23 01:29:16 +02:00
2024-10-15 22:52:21 +02:00
nativeBuildInputs = [
2025-01-12 14:27:52 +01:00
jq
moreutils
pnpm_10.configHook
2024-10-15 22:52:21 +02:00
nodejs
cargo-tauri.hook
2024-10-15 22:52:21 +02:00
pkg-config
wrapGAppsHook3
];
buildInputs = [
glib-networking # needed to load icons
2024-10-15 22:52:21 +02:00
libsoup_3
openssl
webkitgtk_4_1
2024-10-15 22:52:21 +02:00
];
passthru.updateScript = nix-update-script { };
2024-10-15 22:52:21 +02:00
meta = {
description = "Lightweight Thunderstore client";
homepage = "https://github.com/Kesomannen/gale";
license = lib.licenses.gpl3Only;
mainProgram = "gale";
2025-07-13 13:05:24 -04:00
maintainers = with lib.maintainers; [
tomasajt
notohh
];
2024-10-15 22:52:21 +02:00
platforms = lib.platforms.linux;
};
})