mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-23 11:00:44 -06:00
Compare commits
4 commits
3a5410f68b
...
2d6d8fb9a1
Author | SHA1 | Date | |
---|---|---|---|
2d6d8fb9a1 | |||
b7cb67a907 | |||
9ed82c1ae6 | |||
42e9583808 |
6 changed files with 32 additions and 24 deletions
|
@ -1209,11 +1209,11 @@
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"dir": "nix",
|
"dir": "nix",
|
||||||
"lastModified": 1726527644,
|
"lastModified": 1727122609,
|
||||||
"narHash": "sha256-WAruDParTj7AY16SNjTDPgXf54vJCQRpRAiED3x9FIM=",
|
"narHash": "sha256-M6tkMDvt4zOoYAhBOCFxFQGjORhhjZbWMC+0tPnHkxU=",
|
||||||
"owner": "daylinmorgan",
|
"owner": "daylinmorgan",
|
||||||
"repo": "tsm",
|
"repo": "tsm",
|
||||||
"rev": "5991d93bcb216c4cd5345296111fee7027be29cf",
|
"rev": "e8539740f6faf49404f30225607edbad58c34962",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -6,7 +6,6 @@ let
|
||||||
inherit (lib)
|
inherit (lib)
|
||||||
genAttrs
|
genAttrs
|
||||||
pkgFromSystem
|
pkgFromSystem
|
||||||
pkgsFromSystem
|
|
||||||
loadOverlays
|
loadOverlays
|
||||||
;
|
;
|
||||||
|
|
||||||
|
@ -46,7 +45,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,15 +1,16 @@
|
||||||
{ fetchFromGitHub, buildNimPackage }:
|
{ fetchFromGitHub, buildNimPackage }:
|
||||||
buildNimPackage{
|
buildNimPackage( finalAttrs: {
|
||||||
pname = "nimlangserver";
|
pname = "nimlangserver";
|
||||||
version = "unstable";
|
version = "1.6.0";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "daylinmorgan";
|
owner = "nim-lang";
|
||||||
repo = "langserver";
|
repo = "langserver";
|
||||||
rev = "26b333d0c8d62ba947a9ce9fbd59a7a77766872c";
|
# rev = "26b333d0c8d62ba947a9ce9fbd59a7a77766872c";
|
||||||
# rev = "v${version}";
|
rev = "v${finalAttrs.version}";
|
||||||
hash = "sha256-XFgA0yOfE34+bZxBgOdoK+5CWhxvppzl8QSQx1TTPpQ=";
|
hash = "sha256-rTlkbNuJbL9ke1FpHYVYduiYHUON6oACg20pBs0MaP4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
lockFile = ./lock.json;
|
lockFile = ./lock.json;
|
||||||
}
|
}
|
||||||
|
)
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
{ fetchFromGitHub, buildNimPackage }:
|
{
|
||||||
|
fetchFromGitHub,
|
||||||
|
buildNimPackage,
|
||||||
|
}:
|
||||||
buildNimPackage (finalAttrs: {
|
buildNimPackage (finalAttrs: {
|
||||||
pname = "nph";
|
pname = "nph";
|
||||||
version = "0.6.0";
|
version = "0.6.0";
|
||||||
|
@ -8,7 +11,11 @@ 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,13 +117,14 @@ 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],
|
[build, help = sharedHelp, usage = clUse ],
|
||||||
[cache, help = cacheHelp ],
|
[cache, help = cacheHelp , usage = clUse ],
|
||||||
[ci, help = ciHelp ],
|
[ci, help = ciHelp , usage = clUse ],
|
||||||
[dry, help = sharedHelp],
|
[dry, help = sharedHelp, usage = clUse ],
|
||||||
[osCmd, help = sharedHelp, usage = osUsage, cmdName = "os"],
|
[osCmd, help = sharedHelp, usage = osUsage, cmdName = "os"],
|
||||||
[output, help = sharedHelp],
|
[output, help = sharedHelp, usage = clUse],
|
||||||
[update, help = updateHelp],
|
[update, help = updateHelp, usage = clUse],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -94,10 +94,10 @@ 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 note support JS".}
|
when defined(js): {.fatal: "handler does not support JS".}
|
||||||
try:
|
try:
|
||||||
let handle =
|
let handle =
|
||||||
if logger.useStderr: stderr
|
if logger.useStderr: stderr
|
||||||
else: stdout
|
else: stdout
|
||||||
writeLine(handle, ln)
|
writeLine(handle, ln)
|
||||||
if level >= logger.flushThreshold: flushFile(handle)
|
if level >= logger.flushThreshold: flushFile(handle)
|
||||||
|
@ -112,6 +112,6 @@ template errorQuit*(args: varargs[string, `$`]) =
|
||||||
quit QuitFailure
|
quit QuitFailure
|
||||||
|
|
||||||
template fatalQuit*(args: varargs[string, `$`]) =
|
template fatalQuit*(args: varargs[string, `$`]) =
|
||||||
error args
|
fatal args
|
||||||
quit QuitFailure
|
quit QuitFailure
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue