mirror of
https://codeberg.org/bunbun/bunbun.dev
synced 2025-06-07 19:39:51 -07:00
added nix flake
This commit is contained in:
30
flake.nix
Normal file
30
flake.nix
Normal 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
|
||||
]))
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user