bunbun.dev/flake.nix

41 lines
1.2 KiB
Nix
Raw Normal View History

2024-07-24 22:37:17 -07:00
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
2024-10-21 14:20:20 -07:00
flake-utils.url = "github:numtide/flake-utils";
2024-07-24 22:37:17 -07:00
};
2024-10-21 14:20:20 -07:00
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system};
in with pkgs; {
devShells.default = mkShell {
buildInputs = [
(lua5_3.withPackages (ps:
with ps; [
(buildLuarocksPackage {
pname = "cmark";
version = "0.30.2-1";
knownRockspec = (fetchurl {
url = "mirror://luarocks/cmark-0.30.2-1.rockspec";
sha256 =
"077kvl9xa9yj0fxyyxxw43k9v9dgd5f11ax8hhxj3nx8vfs5rps8";
}).outPath;
2024-07-25 17:43:17 -07:00
2024-10-21 14:20:20 -07:00
src = fetchFromGitHub {
owner = "jgm";
repo = "cmark-lua";
rev = "0.30.2";
hash =
"sha256-6Bzq0FdyqXXiL6pLDRFbULFJpowF0P6CvAw8iqFXkkQ=";
};
})
luafilesystem
luasocket
luasec
fennel
]))
];
};
});
2024-07-24 22:37:17 -07:00
}