This commit is contained in:
Rongsong Shen 2025-08-26 10:40:52 +08:00
parent adf4888d4a
commit 26ab45b57b
3 changed files with 9 additions and 6 deletions

View file

@ -1,4 +1,4 @@
{pkgs,mypkgs,...}: {pkgs,...}:
with pkgs; with pkgs;
{ {
xbuild = callPackage ./pkgs/x/xbuild/package.nix {}; xbuild = callPackage ./pkgs/x/xbuild/package.nix {};

View file

@ -3,10 +3,9 @@
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
mypkgs.url = "github:shen390s/my-nix-channel?ref=master";
}; };
outputs = { self, nixpkgs, mypkgs}: outputs = { self, nixpkgs}:
let let
supportedSystems = [ "x86_64-linux" ]; supportedSystems = [ "x86_64-linux" ];
forAllSystems = nixpkgs.lib.genAttrs supportedSystems; forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
@ -15,7 +14,7 @@
packages = forAllSystems (system: let packages = forAllSystems (system: let
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
in in
import ./default.nix { inherit pkgs; inherit mypkgs;}); import ./default.nix { inherit pkgs; });
}; };
} }

View file

@ -4,7 +4,6 @@
stdenv, stdenv,
fetchFromGitHub, fetchFromGitHub,
pkgs, pkgs,
mypkgs,
... ...
}: }:
@ -31,6 +30,10 @@ let
aclocal && automake --add-missing && autoconf aclocal && automake --add-missing && autoconf
''; '';
}; };
capnpc = pkgs.callPackage ../../pkgs/c/capnpc/package.nix {};
cedro = pkgs.callPackage ../../pkgs/c/cedro/package.nix {};
wrapped_xbuild = stdenv.mkDerivation { wrapped_xbuild = stdenv.mkDerivation {
name = "xbuild-wrapper"; name = "xbuild-wrapper";
@ -61,7 +64,8 @@ let
pkgs.elogind pkgs.elogind
pkgs.sqlite pkgs.sqlite
pkgs.python3 pkgs.python3
mypkgs.capnpc capnpc
cedro
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [