summaryrefslogtreecommitdiffstats
path: root/flake.nix
blob: 81b91ed9f5f9baf3bc955a9aa9951e0e1a8052fc (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
33
{
  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
        rust-analyzer
      ];

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

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

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