summaryrefslogtreecommitdiff
path: root/stowables-dotlocal/share/nvim/site/pack/manual/start/todotxt.nvim-v0.2.0/flake.nix
blob: a7c9089f446f1bd8ed2b29ace4078e38669ed289 (plain)
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
{
  description = "Neovim plugin to view and add tasks stored in a todo.txt format";

  inputs = {
    utils.url = "github:numtide/flake-utils";
    nixpkgs.url = "github:nixos/nixpkgs/nixos-21.11";
  };

  outputs = { self, nixpkgs, utils }:
    utils.lib.eachDefaultSystem (system:
      let
        pkgs = nixpkgs.legacyPackages."${system}";
        currDir = builtins.getEnv "PWD";
      in rec {
        devShell = pkgs.mkShell {
          nativeBuildInputs = with pkgs; [
            luajit
            luajitPackages.busted
            luajitPackages.luacheck
            stylua
          ];
          LUA_PATH = "${currDir}/lua/?.lua;${currDir}/lua/?/init.lua";
        };
      }
    );
}