-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathflake.nix
54 lines (53 loc) · 1.24 KB
/
flake.nix
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
description = "Multi-player puzzle game similar to Puyo Puyo";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/master";
};
outputs = { self, nixpkgs, ... }:
let
systems = [
"x86_64-linux"
"aarch64-linux"
];
forEachSystem = nixpkgs.lib.genAttrs systems;
in {
overlays.default = final: prev: {
puyovs = final.stdenv.mkDerivation {
pname = "puyovs";
version = "32";
src = ./.;
nativeBuildInputs = with final; with libsForQt5; [
cmake
ninja
qt5.wrapQtAppsHook
pkg-config
];
buildInputs = with final; with libsForQt5; [
qt5.qtbase
zlib-ng
glm
jsoncpp
SDL2
SDL2_ttf
libspng
];
cmakeFlags = [
"-GNinja"
];
meta = {
mainProgram = "PuyoVS";
};
};
};
packages = forEachSystem (system:
let
pkgs = (import nixpkgs {
inherit system;
overlays = [ self.overlays.default ];
});
in rec {
inherit (pkgs) puyovs;
default = puyovs;
});
};
}