Small block game in C
Commit 55416267626d
tarball2 files changed+113-0
@@ -0,0 +1,62 @@
1
+{2
+ "nodes": {3
+ "jag-parse": {4
+ "inputs": {5
+ "nixpkgs": "nixpkgs"6
+ },7
+ "locked": {8
+ "lastModified": 1787765330,9
+ "narHash": "sha256-zskZIriJ0XvquwLqqI4piNq7Ia3sYBZog2ShlsUpUB0=",10
+ "ref": "refs/heads/main",11
+ "rev": "ab284e1a1cfeee747ec7596c6b52ca0db5d3908f",12
+ "revCount": 7,13
+ "type": "git",14
+ "url": "https://codeberg.org/Jaglekon/jag_parse.git"15
+ },16
+ "original": {17
+ "type": "git",18
+ "url": "https://codeberg.org/Jaglekon/jag_parse.git"19
+ }20
+ },21
+ "nixpkgs": {22
+ "locked": {23
+ "lastModified": 1787498568,24
+ "narHash": "sha256-9i/VTdusq/+NM/tz+J1Re+ojkMB8MBf0QshnYfzHz30=",25
+ "owner": "NixOS",26
+ "repo": "nixpkgs",27
+ "rev": "56c02bc00adcf003215cc4bd996d6efaf4cff188",28
+ "type": "github"29
+ },30
+ "original": {31
+ "owner": "NixOS",32
+ "ref": "nixos-unstable",33
+ "repo": "nixpkgs",34
+ "type": "github"35
+ }36
+ },37
+ "nixpkgs_2": {38
+ "locked": {39
+ "lastModified": 1787498568,40
+ "narHash": "sha256-9i/VTdusq/+NM/tz+J1Re+ojkMB8MBf0QshnYfzHz30=",41
+ "owner": "NixOS",42
+ "repo": "nixpkgs",43
+ "rev": "56c02bc00adcf003215cc4bd996d6efaf4cff188",44
+ "type": "github"45
+ },46
+ "original": {47
+ "owner": "NixOS",48
+ "ref": "nixos-unstable",49
+ "repo": "nixpkgs",50
+ "type": "github"51
+ }52
+ },53
+ "root": {54
+ "inputs": {55
+ "jag-parse": "jag-parse",56
+ "nixpkgs": "nixpkgs_2"57
+ }58
+ }59
+ },60
+ "root": "root",61
+ "version": 762
+}@@ -0,0 +1,51 @@
1
+{2
+ description = "Jaglekon's Block_Game";3
+4
+ inputs = {5
+ nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";6
+7
+ jag-parse.url = "git+https://codeberg.org/Jaglekon/jag_parse.git";8
+ };9
+10
+ outputs = {11
+ jag-parse,12
+ self,13
+ nixpkgs,14
+ }: let15
+ system = "x86_64-linux";16
+ pkgs = import nixpkgs {inherit system;};17
+ jag-parse-lib = jag-parse.packages.${system}.default;18
+ in {19
+ packages.${system}.default = pkgs.stdenv.mkDerivation {20
+ pname = "tetoris";21
+ version = "1.0.0";22
+23
+ src = ./.;24
+25
+ buildInputs = [26
+ jag-parse-lib27
+ ];28
+29
+ buildPhase = ''30
+ $CC \31
+ source/main.c \32
+ source/draw.c \33
+ source/logic.c \34
+ -I${jag-parse-lib}/include \35
+ -L${jag-parse-lib}/lib \36
+ -ljag_parse \37
+ -o tetoris38
+ '';39
+40
+ installPhase = ''41
+ mkdir -p $out/bin42
+ cp tetoris $out/bin43
+ '';44
+ };45
+46
+ apps.${system}.default = {47
+ type = "app";48
+ program = "${self.packages.${system}.default}/bin/tetoris";49
+ };50
+ };51
+}