refactor(flightcore): consume source from nvfetcher generated.nix (#14)
cache / build (push) Has been cancelled
cache / build (push) Has been cancelled
Reviewed-on: #14 Co-authored-by: Nikkuss <Scuggo@pm.me> Co-committed-by: Nikkuss <Scuggo@pm.me>
This commit was merged in pull request #14.
This commit is contained in:
@@ -13,17 +13,14 @@
|
|||||||
pkg-config,
|
pkg-config,
|
||||||
webkitgtk_4_1,
|
webkitgtk_4_1,
|
||||||
wrapGAppsHook4,
|
wrapGAppsHook4,
|
||||||
fetchFromGitHub,
|
callPackage,
|
||||||
}:
|
}: let
|
||||||
rustPlatform.buildRustPackage (finalAttrs: {
|
sources = callPackage ../../../../_sources/generated.nix {};
|
||||||
|
in
|
||||||
|
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;
|
||||||
@@ -70,4 +67,4 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
|||||||
platforms = ["x86_64-linux"];
|
platforms = ["x86_64-linux"];
|
||||||
description = "FlightCore A Northstar installer, updater, and mod-manager";
|
description = "FlightCore A Northstar installer, updater, and mod-manager";
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user