FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
openage/flake.nix at master · SFTtech/openage · GitHub
SFTtech
/
openage
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
1.3k
Star
14.5k
Code
Issues
193
Pull requests
14
Discussions
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
openage
/
flake.nix
Copy path
More file actions
More file actions
Latest commit
History
History
History
39 lines (35 loc) · 1.49 KB
Breadcrumbs
openage
/
flake.nix
Copy path
File metadata and controls
39 lines (35 loc) · 1.49 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
# 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
;
}
;
}
)
;
}
Back
|
FazBrowse Home
|
New Git URL