mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 03:32:33 +08:00
refactor: multi-platform support for nix build
This commit is contained in:
parent
13445d815b
commit
6dd8cf6c0a
|
@ -2,11 +2,11 @@
|
|||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1664614409,
|
||||
"narHash": "sha256-5y+zhLMzc/k4NYnCfW+seM9oaNuUI/UeGMGPFRj8cR0=",
|
||||
"lastModified": 1664638641,
|
||||
"narHash": "sha256-r2gVLq9DD1A0Igv4AdkmpuuVykXmKVsJTAJinS/ZFrM=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "b746456c6f6ef8404ef6011df5eceba8644c49a9",
|
||||
"rev": "cb81a9ca94e7631bc67788d858e214d56571983a",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
18
flake.nix
18
flake.nix
|
@ -6,14 +6,22 @@
|
|||
inputs.utils.url = "github:numtide/flake-utils";
|
||||
|
||||
outputs = { self, nixpkgs, utils }:
|
||||
(utils.lib.eachDefaultSystem
|
||||
utils.lib.eachDefaultSystem
|
||||
(system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in
|
||||
|
||||
{
|
||||
defaultPackages = pkgs.callPackage ./. { };
|
||||
})
|
||||
);
|
||||
packages = rec{
|
||||
clash-meta = pkgs.callPackage ./. { };
|
||||
default = clash-meta;
|
||||
};
|
||||
|
||||
apps = rec {
|
||||
clash-meta = utils.lib.mkApp { drv = self.packages.${system}.clash-meta; };
|
||||
default = clash-meta;
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user