summaryrefslogtreecommitdiffstats
path: root/flake.nix
blob: 0878b1de308aece72c0068df6933153bd0d9a337 (plain) (blame)
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
{
  description = "An RMS-themed bullet hell game.";

  outputs = { self, nixpkgs }:
  let pkgs = nixpkgs.legacyPackages.x86_64-linux; in
  rec {

    packages.x86_64-linux.stallman-shooter = pkgs.rustPlatform.buildRustPackage {
      pname = "stallman-shooter";
      version = "1.0.0";

      src = self;

      cargoLock = {
        lockFile = ./Cargo.lock;
      };

      nativeBuildInputs = with pkgs; [
        clippy
      ];

      buildInputs = with pkgs; [
        SDL2
        SDL2_image
      ];
    };

    defaultPackage.x86_64-linux = packages.x86_64-linux.stallman-shooter;

    checks.build = packages.x86_64-linux.stallman-shooter;
  };
}