-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
75 lines (63 loc) · 1.64 KB
/
flake.nix
File metadata and controls
75 lines (63 loc) · 1.64 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
description = "A flake to build git-commits-bullet-hell";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
outputs =
{
self,
nixpkgs,
...
}:
let
pkgs = import nixpkgs { system = "x86_64-linux"; };
deps = {
nativeBuildInputs = with pkgs; [
git
cmake
xxd
libgit2
sdl3
sdl3-image
sdl3-ttf
];
};
in
{
packages.x86_64-linux.git-commits-bullet-hell = pkgs.stdenv.mkDerivation (finalAttrs: {
pname = "git-commits-bullet-hell";
version = "0.0.0";
src = ./.;
inherit (deps) nativeBuildInputs;
configurePhase = ''
cmake -B build
'';
buildPhase = ''
cmake --build build
'';
installPhase = ''
mkdir -p $out
cmake --install build --prefix $out
'';
meta = {
description = "git log but its undertale pacifist ending credits";
homepage = "https://github.com/p1k0chu/git-commits-bullet-hell";
license = pkgs.lib.licenses.mit;
maintainers = {
github = "p1k0chu";
};
};
});
packages.x86_64-linux.default = self.packages.x86_64-linux.git-commits-bullet-hell;
devShells.x86_64-linux.git-commits-bullet-hell = pkgs.mkShell {
packages =
with pkgs;
[
clang-analyzer
clang-tools
]
++ deps.nativeBuildInputs;
};
devShells.x86_64-linux.default = self.devShells.x86_64-linux.git-commits-bullet-hell;
};
}