refactor(flightcore): consume source from nvfetcher generated.nix
check / build (push) Has been cancelled
check / build (pull_request) Has been cancelled

This commit is contained in:
2026-05-29 15:08:06 +04:00
parent fde697aebe
commit 9b5c7e560b
+6 -9
View File
@@ -13,17 +13,14 @@
pkg-config, pkg-config,
webkitgtk_4_1, webkitgtk_4_1,
wrapGAppsHook4, wrapGAppsHook4,
fetchFromGitHub, callPackage,
}: }: let
sources = callPackage ../../../../_sources/generated.nix {};
in
rustPlatform.buildRustPackage (finalAttrs: { rustPlatform.buildRustPackage (finalAttrs: {
pname = "flightcore"; pname = "flightcore";
version = "3.2.0"; version = lib.removePrefix "v" sources.flightcore.version;
src = fetchFromGitHub { inherit (sources.flightcore) src;
owner = "R2NorthstarTools";
repo = "FlightCore";
rev = "v${finalAttrs.version}";
sha256 = "sha256-MFnW9cXFzqmdtC31r8cRcihV3NjGAC6+2/DnNVMheCI=";
};
patches = [./cargo-lock.patch]; patches = [./cargo-lock.patch];
cargoDeps = rustPlatform.fetchCargoVendor { cargoDeps = rustPlatform.fetchCargoVendor {
src = finalAttrs.src; src = finalAttrs.src;