add extralib dependency

This commit is contained in:
Rongsong Shen 2025-12-05 16:06:25 +08:00
parent cc4718f3fa
commit 7b5f280ae5
2 changed files with 81 additions and 10 deletions

View file

@ -4,10 +4,11 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
xbuild.url = "github:shen390s/my-nix-channel?ref=master";
extralib.url = "git+ssh://forgejo@gitea.shenrs.eu/nexa/extralibs?ref=main";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, xbuild, flake-utils }:
outputs = { self, nixpkgs, xbuild, extralib, flake-utils }:
let
supportedSystems = [ "x86_64-linux" ];
myCommitId =
@ -17,9 +18,9 @@
in
flake-utils.lib.eachSystem supportedSystems (
system: let
mypkgs = xbuild.packages.${system};
mypkgs = xbuild.packages.${system} // extralib.packages.${system};
overlays = [
(final: prev: prev // mypkgs)
(final: prev: mypkgs // prev)
];
pkgs = import nixpkgs { inherit overlays system;};
xpkgs = import ./nixSupport/default.nix {