love-cellular-automata/flake.nix

33 lines
999 B
Nix
Raw Permalink Normal View History

2022-09-09 19:44:37 +00:00
{
description = "cellular automata experiments written in lua with löve";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
flake-parts.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, flake-parts, ... }:
flake-parts.lib.mkFlake { inherit self; } {
imports = [ ];
systems = [ "x86_64-linux" "aarch64-darwin" ];
perSystem = { config, self', inputs', pkgs, system, ... }: {
2022-09-11 04:23:52 +00:00
devShells.default =
let
pkgs' = import ./nix { inherit pkgs; };
inherit (pkgs') love lume lurker;
in
pkgs.mkShell {
LUA_PATH = "vendor/?.lua;;";
name = "love";
2022-09-11 16:08:09 +00:00
packages = [ love pkgs.lua ];
2022-09-11 04:23:52 +00:00
shellHook = ''
mkdir -p vendor
2022-09-11 04:23:52 +00:00
ln -snf ${lume}/lume.lua vendor/lume.lua
ln -snf ${lurker}/lurker.lua vendor/lurker.lua
'';
};
2022-09-09 19:44:37 +00:00
};
};
}