mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-24 07:50:43 -06:00
Compare commits
1 commit
98583c4687
...
5f175aa4b2
Author | SHA1 | Date | |
---|---|---|---|
5f175aa4b2 |
6 changed files with 37 additions and 45 deletions
32
flake.lock
32
flake.lock
|
@ -356,11 +356,11 @@
|
||||||
"xdph": "xdph"
|
"xdph": "xdph"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1727173505,
|
"lastModified": 1727137145,
|
||||||
"narHash": "sha256-DaiWKEntVBrgy1OZEGW3izIfzyIr1jav/Jpo9tqL4EU=",
|
"narHash": "sha256-3HB4Y7YBWItpKBWyzQHXzNH9JXAoYqkNIYpeV4dB7kI=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "00c862686354d139a53222d41a1c80d698a50c43",
|
"rev": "0a211f29f5952322925b9f982cbf9b0326d45f0f",
|
||||||
"revCount": 5253,
|
"revCount": 5252,
|
||||||
"submodules": true,
|
"submodules": true,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/hyprwm/Hyprland/"
|
"url": "https://github.com/hyprwm/Hyprland/"
|
||||||
|
@ -819,11 +819,11 @@
|
||||||
"nixpkgs": "nixpkgs_6"
|
"nixpkgs": "nixpkgs_6"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1727202948,
|
"lastModified": 1727127028,
|
||||||
"narHash": "sha256-qJ6JiwyAD4tsJ6IR8Ake5/sH/jIJGwwrLzJgvy1yzwI=",
|
"narHash": "sha256-hs7sutM2xdq+DhW7xICNSbmF7ZlIgZLeJ2nlJC/tQVc=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nixpkgs-wayland",
|
"repo": "nixpkgs-wayland",
|
||||||
"rev": "988dc351f28deee2781202697bebaf76b8b82014",
|
"rev": "ddf94f1857eabb72773d268272312a3c217fe2c5",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -975,11 +975,11 @@
|
||||||
"rust-overlay": "rust-overlay"
|
"rust-overlay": "rust-overlay"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1727199359,
|
"lastModified": 1727074224,
|
||||||
"narHash": "sha256-wS8T3zKv1liHf87Vts2DUzCZTvrZepy7HDgs14WkgvM=",
|
"narHash": "sha256-L2DS4jqALMY1W/NkRu7LoZch+nefBEiKeXD84zWKvZY=",
|
||||||
"owner": "roc-lang",
|
"owner": "roc-lang",
|
||||||
"repo": "roc",
|
"repo": "roc",
|
||||||
"rev": "8c737868aa09c58fe5ef9da587fc3fe3b1c7e43f",
|
"rev": "5f3a956137c9e9814f304abb44478dc398bde21a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -1289,11 +1289,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1727179839,
|
"lastModified": 1726878449,
|
||||||
"narHash": "sha256-OpO99oyPGvNeWDzuKMb/6tmTLKlmn+8IM4Ehltih68w=",
|
"narHash": "sha256-gchxeelL+IdgL/LoEsg3FnO4Dv5z+lmRVHqIE3tq6NA=",
|
||||||
"owner": "mitchellh",
|
"owner": "mitchellh",
|
||||||
"repo": "zig-overlay",
|
"repo": "zig-overlay",
|
||||||
"rev": "9b4f376b30a69b4b129e92b2979b92f5b95ed6d3",
|
"rev": "2419eb9f968f451e2c342a69ec44112de5aa36b9",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -1314,11 +1314,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1727202282,
|
"lastModified": 1726791560,
|
||||||
"narHash": "sha256-c6fMn99XWXymIaQoMwQfJpZgvE5dU4OzIf+qdHkEFmY=",
|
"narHash": "sha256-0SDGQeb/onI7zVdNOdUhTJ2r4EmSJQJV2bjyXENBgws=",
|
||||||
"owner": "zigtools",
|
"owner": "zigtools",
|
||||||
"repo": "zls",
|
"repo": "zls",
|
||||||
"rev": "59d18631e4277dd403ca21cde3a4af419933359a",
|
"rev": "2b613d32696676bcbc257e31542a1dcbfa7f22a8",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -6,6 +6,7 @@ let
|
||||||
inherit (lib)
|
inherit (lib)
|
||||||
genAttrs
|
genAttrs
|
||||||
pkgFromSystem
|
pkgFromSystem
|
||||||
|
pkgsFromSystem
|
||||||
loadOverlays
|
loadOverlays
|
||||||
;
|
;
|
||||||
|
|
||||||
|
@ -45,7 +46,7 @@ let
|
||||||
oizys-nim = pkgs.callPackage ../pkgs/oizys-nim { };
|
oizys-nim = pkgs.callPackage ../pkgs/oizys-nim { };
|
||||||
oizys-go = pkgs.callPackage ../pkgs/oizys { };
|
oizys-go = pkgs.callPackage ../pkgs/oizys { };
|
||||||
# nimlangserver = pkgs.callPackage ../pkgs/nimlangserver { };
|
# nimlangserver = pkgs.callPackage ../pkgs/nimlangserver { };
|
||||||
nph = pkgs.callPackage ../pkgs/nph { };
|
# nph = pkgs.callPackage ../pkgs/nph { };
|
||||||
iso = mkIso.config.system.build.isoImage;
|
iso = mkIso.config.system.build.isoImage;
|
||||||
# roc = (pkgsFromSystem pkgs.system "roc").full;
|
# roc = (pkgsFromSystem pkgs.system "roc").full;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,16 +1,15 @@
|
||||||
{ fetchFromGitHub, buildNimPackage }:
|
{ fetchFromGitHub, buildNimPackage }:
|
||||||
buildNimPackage( finalAttrs: {
|
buildNimPackage{
|
||||||
pname = "nimlangserver";
|
pname = "nimlangserver";
|
||||||
version = "1.6.0";
|
version = "unstable";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "nim-lang";
|
owner = "daylinmorgan";
|
||||||
repo = "langserver";
|
repo = "langserver";
|
||||||
# rev = "26b333d0c8d62ba947a9ce9fbd59a7a77766872c";
|
rev = "26b333d0c8d62ba947a9ce9fbd59a7a77766872c";
|
||||||
rev = "v${finalAttrs.version}";
|
# rev = "v${version}";
|
||||||
hash = "sha256-rTlkbNuJbL9ke1FpHYVYduiYHUON6oACg20pBs0MaP4=";
|
hash = "sha256-XFgA0yOfE34+bZxBgOdoK+5CWhxvppzl8QSQx1TTPpQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
lockFile = ./lock.json;
|
lockFile = ./lock.json;
|
||||||
}
|
}
|
||||||
)
|
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
{
|
{ fetchFromGitHub, buildNimPackage }:
|
||||||
fetchFromGitHub,
|
|
||||||
buildNimPackage,
|
|
||||||
}:
|
|
||||||
buildNimPackage (finalAttrs: {
|
buildNimPackage (finalAttrs: {
|
||||||
pname = "nph";
|
pname = "nph";
|
||||||
version = "0.6.0";
|
version = "0.6.0";
|
||||||
|
@ -11,11 +8,7 @@ buildNimPackage (finalAttrs: {
|
||||||
rev = "v${finalAttrs.version}";
|
rev = "v${finalAttrs.version}";
|
||||||
hash = "sha256-9t5VeGsxyytGdu7+Uv/J+x6bmeB5+eQapbyp30iPxqs=";
|
hash = "sha256-9t5VeGsxyytGdu7+Uv/J+x6bmeB5+eQapbyp30iPxqs=";
|
||||||
};
|
};
|
||||||
# replace gorge(git...) call to for version
|
|
||||||
patchPhase = ''
|
|
||||||
runHook prePatch
|
|
||||||
sed -i 's/Version = gorge(.*/Version = """v${finalAttrs.version}\n"""/' src/nph.nim
|
|
||||||
runHook postPatch
|
|
||||||
'';
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
})
|
}
|
||||||
|
)
|
||||||
|
|
|
@ -117,14 +117,13 @@ when isMainModule:
|
||||||
# clUse must be set here using clCfg doesn't seem to work with dispatchMutli ...
|
# clUse must be set here using clCfg doesn't seem to work with dispatchMutli ...
|
||||||
clUse* = $bb("$command $args\n${doc}[bold]Options[/]:\n$options")
|
clUse* = $bb("$command $args\n${doc}[bold]Options[/]:\n$options")
|
||||||
osUsage = $bb("$command [[subcmd] $args\n$doc[bold]Options[/]:\n$options")
|
osUsage = $bb("$command [[subcmd] $args\n$doc[bold]Options[/]:\n$options")
|
||||||
|
|
||||||
dispatchMulti(
|
dispatchMulti(
|
||||||
[build, help = sharedHelp, usage = clUse ],
|
[build, help = sharedHelp],
|
||||||
[cache, help = cacheHelp , usage = clUse ],
|
[cache, help = cacheHelp ],
|
||||||
[ci, help = ciHelp , usage = clUse ],
|
[ci, help = ciHelp ],
|
||||||
[dry, help = sharedHelp, usage = clUse ],
|
[dry, help = sharedHelp],
|
||||||
[osCmd, help = sharedHelp, usage = osUsage, cmdName = "os"],
|
[osCmd, help = sharedHelp, usage = osUsage, cmdName = "os"],
|
||||||
[output, help = sharedHelp, usage = clUse],
|
[output, help = sharedHelp],
|
||||||
[update, help = updateHelp, usage = clUse],
|
[update, help = updateHelp],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -94,7 +94,7 @@ method log*(logger: FancyConsoleLogger, level: Level, args: varargs[string, `$`]
|
||||||
|
|
||||||
if level >= logger.levelThreshold:
|
if level >= logger.levelThreshold:
|
||||||
let ln = substituteLog(logger.fmtStrs[level], level, args)
|
let ln = substituteLog(logger.fmtStrs[level], level, args)
|
||||||
when defined(js): {.fatal: "handler does not support JS".}
|
when defined(js): {.fatal: "handler does note support JS".}
|
||||||
try:
|
try:
|
||||||
let handle =
|
let handle =
|
||||||
if logger.useStderr: stderr
|
if logger.useStderr: stderr
|
||||||
|
@ -112,6 +112,6 @@ template errorQuit*(args: varargs[string, `$`]) =
|
||||||
quit QuitFailure
|
quit QuitFailure
|
||||||
|
|
||||||
template fatalQuit*(args: varargs[string, `$`]) =
|
template fatalQuit*(args: varargs[string, `$`]) =
|
||||||
fatal args
|
error args
|
||||||
quit QuitFailure
|
quit QuitFailure
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue