Small block game in C
Commit 1a3c5635ceb0
tarball1 file changed+6-11
@@ -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/bin42
- cp tetoris $out/bin42
+ install tetoris $out/bin4343
'';4444
};45
-46
- apps.${system}.default = {47
- type = "app";48
- program = "${self.packages.${system}.default}/bin/tetoris";49
- };5045
};5146
}