refactor(flightcore): consume source from nvfetcher generated.nix (#14)
Reviewed-on: #14 Co-authored-by: Nikkuss <Scuggo@pm.me> Co-committed-by: Nikkuss <Scuggo@pm.me>
This commit is contained in:
@@ -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";
|
||||
};
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user