add nix flake

This commit is contained in:
Fabien Freling 2025-02-24 13:02:36 +01:00
commit fbb14897bd
2 changed files with 72 additions and 0 deletions

24
flake.nix Normal file
View file

@ -0,0 +1,24 @@
{
description = "Rush - endless runner for Playdate";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
playdate-sdk = {
url = "github:RegularTetragon/playdate-sdk-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, playdate-sdk }:
let system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
playdate-sdk-pkg = playdate-sdk.packages.${system}.default;
in {
devShell.${system} = with pkgs;
mkShell {
nativeBuildInputs = [
playdate-sdk-pkg
];
};
};
}