mirror of
https://codeberg.org/bunbun/bunbun.dev
synced 2025-01-22 04:34:29 -08:00
updated flake
This commit is contained in:
parent
a74c54d63c
commit
55733a27e9
26
flake.nix
26
flake.nix
@ -1,30 +1,32 @@
|
|||||||
{
|
{
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, ... } @ inputs:
|
outputs = { self, nixpkgs, flake-utils }:
|
||||||
let
|
flake-utils.lib.eachDefaultSystem (system:
|
||||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
let pkgs = nixpkgs.legacyPackages.${system};
|
||||||
in
|
in with pkgs; {
|
||||||
{
|
devShells.default = mkShell {
|
||||||
devShells.x86_64-linux.default = pkgs.mkShell {
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
(pkgs.lua5_1.withPackages (ps: with ps; [
|
(lua5_3.withPackages (ps:
|
||||||
({ fetchFromGitHub, fetchurl }:
|
with ps; [
|
||||||
ps.buildLuarocksPackage {
|
(buildLuarocksPackage {
|
||||||
pname = "cmark";
|
pname = "cmark";
|
||||||
version = "0.30.2-1";
|
version = "0.30.2-1";
|
||||||
knownRockspec = (fetchurl {
|
knownRockspec = (fetchurl {
|
||||||
url = "mirror://luarocks/cmark-0.30.2-1.rockspec";
|
url = "mirror://luarocks/cmark-0.30.2-1.rockspec";
|
||||||
sha256 = "077kvl9xa9yj0fxyyxxw43k9v9dgd5f11ax8hhxj3nx8vfs5rps8";
|
sha256 =
|
||||||
|
"077kvl9xa9yj0fxyyxxw43k9v9dgd5f11ax8hhxj3nx8vfs5rps8";
|
||||||
}).outPath;
|
}).outPath;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "jgm";
|
owner = "jgm";
|
||||||
repo = "cmark-lua";
|
repo = "cmark-lua";
|
||||||
rev = "0.30.2";
|
rev = "0.30.2";
|
||||||
hash = "sha256-6Bzq0FdyqXXiL6pLDRFbULFJpowF0P6CvAw8iqFXkkQ=";
|
hash =
|
||||||
|
"sha256-6Bzq0FdyqXXiL6pLDRFbULFJpowF0P6CvAw8iqFXkkQ=";
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
luafilesystem
|
luafilesystem
|
||||||
@ -34,5 +36,5 @@
|
|||||||
]))
|
]))
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user