added nix flake

This commit is contained in:
2024-07-24 22:37:17 -07:00
parent 48aab27d60
commit 45a75fc3dc
3 changed files with 79 additions and 0 deletions

30
flake.nix Normal file
View File

@ -0,0 +1,30 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs, ... } @ inputs:
let
pkgs = nixpkgs.legacyPackages.x86_64-linux;
in
{
devShells.x86_64-linux.default = pkgs.mkShell {
buildInputs = [
(pkgs.lua5_1.withPackages (ps: with ps; [
(
let
buildLuarocksPackage = ps.buildLuarocksPackage;
in
pkgs.callPackage ./cmark.nix {
inherit buildLuarocksPackage;
}
)
luafilesystem
luasocket
luasec
fennel
]))
];
};
};
}