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
+8 -11
View File
@@ -13,17 +13,14 @@
pkg-config,
webkitgtk_4_1,
wrapGAppsHook4,
fetchFromGitHub,
}:
rustPlatform.buildRustPackage (finalAttrs: {
callPackage,
}: let
sources = callPackage ../../../../_sources/generated.nix {};
in
rustPlatform.buildRustPackage (finalAttrs: {
pname = "flightcore";
version = "3.2.0";
src = fetchFromGitHub {
owner = "R2NorthstarTools";
repo = "FlightCore";
rev = "v${finalAttrs.version}";
sha256 = "sha256-MFnW9cXFzqmdtC31r8cRcihV3NjGAC6+2/DnNVMheCI=";
};
version = lib.removePrefix "v" sources.flightcore.version;
inherit (sources.flightcore) src;
patches = [./cargo-lock.patch];
cargoDeps = rustPlatform.fetchCargoVendor {
src = finalAttrs.src;
@@ -70,4 +67,4 @@ rustPlatform.buildRustPackage (finalAttrs: {
platforms = ["x86_64-linux"];
description = "FlightCore A Northstar installer, updater, and mod-manager";
};
})
})