mirror of
https://github.com/sbrow/thor.git
synced 2026-08-26 11:23:32 -04:00
build: Updated to latest available Odin package.
This commit is contained in:
Generated
+3
-3
@@ -51,11 +51,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-unstable": {
|
"nixpkgs-unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1783475452,
|
"lastModified": 1784525419,
|
||||||
"narHash": "sha256-3S92fSuv32mjJz2Qb2F4405c21J55F4NIphz5K6hxco=",
|
"narHash": "sha256-yocJ4I4Kd4as0UPMFs9P7laPvvA2x/Bj8EW46iW3VVM=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "05988b07fb05cbcb50be6bce197b4b5f75b5e61b",
|
"rev": "a16c3fde2ffeab7f6326f50f460aaffde7ae066d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -62,6 +62,8 @@
|
|||||||
pkgs.tree-sitter-grammars.tree-sitter-html.src;
|
pkgs.tree-sitter-grammars.tree-sitter-html.src;
|
||||||
css-grammar = mkGrammarStaticLib "tree-sitter-css"
|
css-grammar = mkGrammarStaticLib "tree-sitter-css"
|
||||||
pkgs.tree-sitter-grammars.tree-sitter-css.src;
|
pkgs.tree-sitter-grammars.tree-sitter-css.src;
|
||||||
|
odin = pkgs.unstable.odin;
|
||||||
|
ols = pkgs.unstable.ols;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
_module.args.pkgs = import nixpkgs {
|
_module.args.pkgs = import nixpkgs {
|
||||||
@@ -108,7 +110,7 @@
|
|||||||
src = ./.;
|
src = ./.;
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkgs.odin
|
odin
|
||||||
pkgs.pkg-config
|
pkgs.pkg-config
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -143,9 +145,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
devShells.default = pkgs.mkShell {
|
devShells.default = pkgs.mkShell {
|
||||||
buildInputs = with pkgs; [
|
buildInputs = [odin ols ] ++ (with pkgs; [
|
||||||
odin
|
|
||||||
ols
|
|
||||||
cmark
|
cmark
|
||||||
tree-sitter
|
tree-sitter
|
||||||
|
|
||||||
@@ -153,7 +153,7 @@
|
|||||||
unstable.helix
|
unstable.helix
|
||||||
typescript-language-server
|
typescript-language-server
|
||||||
vscode-langservers-extracted
|
vscode-langservers-extracted
|
||||||
];
|
]);
|
||||||
|
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
export LIBRARY_PATH="${html-grammar}/lib:${css-grammar}/lib:$LIBRARY_PATH"
|
export LIBRARY_PATH="${html-grammar}/lib:${css-grammar}/lib:$LIBRARY_PATH"
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ Flags :: struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
init_site :: proc(site: ^Site, args: []string) {
|
init_site :: proc(site: ^Site, args: []string) {
|
||||||
mem.dynamic_arena_init(&site.arena, alignment = 64)
|
mem.dynamic_arena_init(&site.arena)
|
||||||
alloc := site_allocator(site)
|
alloc := site_allocator(site)
|
||||||
|
|
||||||
// Set defaults
|
// Set defaults
|
||||||
|
|||||||
Reference in New Issue
Block a user