jag

tetoris_c

public

Small block game in C

Star0
Watch0

Commit 1a3c5635ceb0

tarball

Jaglekon <58274093+Jaglekon@users.noreply.github.com>2026-08-27 20:08 UTC

1 file changed+6-11
snake inclusion3
Modified file: flake.nix+6 additions−11 deletions
@@ -18,9 +18,9 @@
1818 in {
1919 packages.${system}.default = pkgs.stdenv.mkDerivation {
2020 pname = "tetoris";
21- version = "1.0.0";
21+ version = "1.0.1";
2222
23- src = ./.;
23+ src = ./source/.;
2424
2525 buildInputs = [
2626 jag-parse-lib
@@ -28,9 +28,9 @@
2828
2929 buildPhase = ''
3030 $CC \
31- source/main.c \
32- source/draw.c \
33- source/logic.c \
31+ main.c \
32+ draw.c \
33+ logic.c \
3434 -I${jag-parse-lib}/include \
3535 -L${jag-parse-lib}/lib \
3636 -ljag_parse \
@@ -39,13 +39,8 @@
3939
4040 installPhase = ''
4141 mkdir -p $out/bin
42- cp tetoris $out/bin
42+ install tetoris $out/bin
4343 '';
4444 };
45-
46- apps.${system}.default = {
47- type = "app";
48- program = "${self.packages.${system}.default}/bin/tetoris";
49- };
5045 };
5146 }