jag

2048_rust

public

Small 2048 game in Rust

Star0
Watch0
a741390c29d0d7dcad9e5c293af5f76842271cbd
1
ssh://git@git.jaglekon.de:30/jag/2048_rust.git
flake.nixNix33 lines664 B
1
{
2
  description = "Rust 2048 game";
3
4
  inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
5
6
  outputs = {nixpkgs, ...}: let
7
    system = "x86_64-linux";
8
    pkgs = nixpkgs.legacyPackages.${system};
9
  in {
10
    packages.${system}.default = pkgs.rustPlatform.buildRustPackage {
11
      pname = "jag_2048";
12
      version = "1.0.0";
13
14
      src = ./.;
15
16
      cargoLock.lockFile = ./Cargo.lock;
17
18
      meta = {
19
        description = "Rust 2048 game";
20
        mainProgram = "jag_2048";
21
      };
22
    };
23
24
    devShells.${system}.default = pkgs.mkShell {
25
      packages = with pkgs; [
26
        rustc
27
        cargo
28
        rustfmt
29
        clippy
30
      ];
31
    };
32
  };
33
}