3 Star 2 Fork 1

Gitee 极速下载/openage

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/SFTtech/openage
克隆/下载
flake.nix 1.49 KB
一键复制 编辑 原始数据 按行查看 历史
Alessandro Re 提交于 2024-03-31 22:54 +08:00 . fix: added docs and using in-tree code
{
# This is a nix flake that contains a declarative definition of the openage
# and nyan packages, providing convenient and reproducible builds and
# development shells.
description = "Free (as in freedom) open source clone of the Age of Empires II engine";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = import nixpkgs { inherit system; }; in
{
# This output is to build the derivation with `nix build` as well as to
# get development shells using `nix develop`.
# These are the packages provided by this flake: nyan and openage.
packages = rec {
# `nix build .#nyan` to build this
nyan = pkgs.callPackage ./nix/nyan.nix { };
# `nix build .#openage` to build this
openage = pkgs.callPackage ./nix/openage.nix {
# Nyan is not provided by nixpkgs, but it comes from this flake
inherit (self.packages.${system}) nyan;
};
# If no path is specified, openage is the default
default = openage;
};
# This output is to run the application directly with `nix run`
# (or `nix run .#openage` if you want to be explicit)
apps = rec {
openage = flake-utils.lib.mkApp { drv = self.packages.${system}.openage; };
default = openage;
};
});
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors/openage.git
git@gitee.com:mirrors/openage.git
mirrors
openage
openage
master

搜索帮助