diff options
Diffstat (limited to 'pkgs/development/nim-packages')
-rw-r--r-- | pkgs/development/nim-packages/asciigraph/default.nix | 22 | ||||
-rw-r--r-- | pkgs/development/nim-packages/cbor/default.nix | 4 | ||||
-rw-r--r-- | pkgs/development/nim-packages/coap/default.nix | 20 | ||||
-rw-r--r-- | pkgs/development/nim-packages/eris/default.nix | 37 | ||||
-rw-r--r-- | pkgs/development/nim-packages/freedesktop_org/default.nix | 32 | ||||
-rw-r--r-- | pkgs/development/nim-packages/illwill/default.nix | 20 | ||||
-rw-r--r-- | pkgs/development/nim-packages/parsetoml/default.nix | 22 | ||||
-rw-r--r-- | pkgs/development/nim-packages/preserves/default.nix | 20 | ||||
-rw-r--r-- | pkgs/development/nim-packages/safeset/default.nix | 22 | ||||
-rw-r--r-- | pkgs/development/nim-packages/syndicate/default.nix | 20 | ||||
-rw-r--r-- | pkgs/development/nim-packages/x11/default.nix | 22 |
11 files changed, 239 insertions, 2 deletions
diff --git a/pkgs/development/nim-packages/asciigraph/default.nix b/pkgs/development/nim-packages/asciigraph/default.nix new file mode 100644 index 0000000000000..51cc4c89eca0a --- /dev/null +++ b/pkgs/development/nim-packages/asciigraph/default.nix @@ -0,0 +1,22 @@ +{ lib, buildNimPackage, fetchFromGitHub }: + +buildNimPackage rec { + pname = "asciigraph"; + version = "unstable-2021-03-02"; + + src = fetchFromGitHub { + owner = "Yardanico"; + repo = "asciigraph"; + rev = "9f51fc4e94d0960ab63fa6ea274518159720aa69"; + hash = "sha256-JMBAW8hkE2wuXkRt4aHqFPoz1HX1J4SslvcaQXfpDNk"; + }; + + doCheck = true; + + meta = with lib; + src.meta // { + description = "Console ascii line graphs in pure Nim"; + license = [ licenses.mit ]; + maintainers = with maintainers; [ sikmir ]; + }; +} diff --git a/pkgs/development/nim-packages/cbor/default.nix b/pkgs/development/nim-packages/cbor/default.nix index 9302ca7a97e21..fd4d7ca190e45 100644 --- a/pkgs/development/nim-packages/cbor/default.nix +++ b/pkgs/development/nim-packages/cbor/default.nix @@ -2,12 +2,12 @@ buildNimPackage rec { pname = "cbor"; - version = "20221007"; + version = "20230310"; src = fetchFromSourcehut { owner = "~ehmry"; repo = "nim_${pname}"; rev = version; - hash = "sha256-zFkYsXFRAiBrfz3VNML3l+rYrdJmczl0bfZcJSbHHbM="; + hash = "sha256-VmSYWgXDJLB2D2m3/ymrEytT2iW5JE56WmDz2MPHAqQ="; }; doCheck = true; meta = with lib; diff --git a/pkgs/development/nim-packages/coap/default.nix b/pkgs/development/nim-packages/coap/default.nix new file mode 100644 index 0000000000000..b7a35dcb1a96f --- /dev/null +++ b/pkgs/development/nim-packages/coap/default.nix @@ -0,0 +1,20 @@ +{ lib, buildNimPackage, fetchFromGitea, taps }: + +buildNimPackage rec { + pname = "coap"; + version = "20230125"; + src = fetchFromGitea { + domain = "codeberg.org"; + owner = "eris"; + repo = "${pname}-nim"; + rev = version; + hash = "sha256-wlDyqRxXTrX+zXDIe2o9FTU2o26LO/6m7H/FGok1JDw="; + }; + propagatedBuildInputs = [ taps ]; + meta = src.meta // { + description = + "Nim implementation of the Constrained Application Protocol (CoAP) over TCP"; + license = lib.licenses.agpl3Plus; + maintainers = with lib.maintainers; [ ehmry ]; + }; +} diff --git a/pkgs/development/nim-packages/eris/default.nix b/pkgs/development/nim-packages/eris/default.nix new file mode 100644 index 0000000000000..9c5820398aca2 --- /dev/null +++ b/pkgs/development/nim-packages/eris/default.nix @@ -0,0 +1,37 @@ +{ lib, buildNimPackage, fetchFromGitea, pkg-config +, base32, coap, cbor, freedesktop_org, syndicate, tkrzw }: + +buildNimPackage rec { + pname = "eris"; + version = "20230201"; + outputs = [ "bin" "out" ]; + src = fetchFromGitea { + domain = "codeberg.org"; + owner = "eris"; + repo = "nim-${pname}"; + rev = version; + hash = "sha256-6vlD/woqTkbSRWhRtQD/ynk0DG+GrGwh6x+qUmo6YSQ="; + }; + propagatedNativeBuildInputs = [ pkg-config ]; + propagatedBuildInputs = [ + base32 + coap + cbor + freedesktop_org + syndicate + tkrzw + ]; + postInstall = '' + mkdir -p "$bin/share/applications" + substitute "eris-open.desktop" "$bin/share/applications/eris-open.desktop"\ + --replace "Exec=eriscmd " "Exec=$bin/bin/eriscmd " + + install -D "eris-link.xml" -t "$bin/share/mime/packages" + install -D "eris48.png" "$bin/share/icons/hicolor/48x48/apps/eris.png" + ''; + meta = src.meta // { + license = lib.licenses.unlicense; + maintainers = with lib.maintainers; [ ehmry ]; + mainProgram = "eriscmd"; + }; +} diff --git a/pkgs/development/nim-packages/freedesktop_org/default.nix b/pkgs/development/nim-packages/freedesktop_org/default.nix new file mode 100644 index 0000000000000..745659622c411 --- /dev/null +++ b/pkgs/development/nim-packages/freedesktop_org/default.nix @@ -0,0 +1,32 @@ +{ lib, buildNimPackage, fetchFromSourcehut, fetchFromGitHub }: + +let + # freedesktop_org requires a fork of configparser + configparser = buildNimPackage rec { + pname = "configparser"; + version = "20230120"; + src = fetchFromGitHub { + repo = "nim-" + pname; + owner = "ehmry"; + rev = "695f1285d63f1954c25eb1f42798d90fa7bcbe14"; + hash = "sha256-Z2Qr14pv2RHzQNfEYIKuXKHfHvvIfaEiGCHHCWJZFyw="; + }; + doCheck = true; + }; +in buildNimPackage rec { + pname = "freedesktop_org"; + version = "20230201"; + src = fetchFromSourcehut { + owner = "~ehmry"; + repo = pname; + rev = version; + hash = "sha256-gEN8kiWYCfC9H7o4UE8Xza5s7OwU3TFno6XnIlEm9Dg="; + }; + propagatedBuildInputs = [ configparser ]; + doCheck = true; + meta = src.meta // { + description = "Some Nim procedures for looking up freedesktop.org data"; + license = lib.licenses.unlicense; + maintainers = with lib.maintainers; [ ehmry ]; + }; +} diff --git a/pkgs/development/nim-packages/illwill/default.nix b/pkgs/development/nim-packages/illwill/default.nix new file mode 100644 index 0000000000000..a87588de0eddd --- /dev/null +++ b/pkgs/development/nim-packages/illwill/default.nix @@ -0,0 +1,20 @@ +{ lib, buildNimPackage, fetchFromGitHub }: + +buildNimPackage rec { + pname = "illwill"; + version = "0.3.0"; + + src = fetchFromGitHub { + owner = "johnnovak"; + repo = "illwill"; + rev = "v${version}"; + hash = "sha256-9YBkad5iUKRb375caAuoYkfp5G6KQDhX/yXQ7vLu/CA="; + }; + + meta = with lib; + src.meta // { + description = "A curses inspired simple cross-platform console library for Nim"; + license = [ licenses.wtfpl ]; + maintainers = with maintainers; [ sikmir ]; + }; +} diff --git a/pkgs/development/nim-packages/parsetoml/default.nix b/pkgs/development/nim-packages/parsetoml/default.nix new file mode 100644 index 0000000000000..0c2e31dd41f48 --- /dev/null +++ b/pkgs/development/nim-packages/parsetoml/default.nix @@ -0,0 +1,22 @@ +{ lib, buildNimPackage, fetchFromGitHub }: + +buildNimPackage rec { + pname = "parsetoml"; + version = "0.7.0"; + + src = fetchFromGitHub { + owner = "NimParsers"; + repo = "parsetoml"; + rev = "v${version}"; + hash = "sha256-jtqn59x2ZRRgrPir6u/frsDHnl4kvTJWpbejxti8aHY="; + }; + + doCheck = true; + + meta = with lib; + src.meta // { + description = "A Nim library to parse TOML files"; + license = [ licenses.mit ]; + maintainers = with maintainers; [ sikmir ]; + }; +} diff --git a/pkgs/development/nim-packages/preserves/default.nix b/pkgs/development/nim-packages/preserves/default.nix new file mode 100644 index 0000000000000..251975bcad6e9 --- /dev/null +++ b/pkgs/development/nim-packages/preserves/default.nix @@ -0,0 +1,20 @@ +{ lib, stdenv, buildNimPackage, fetchFromGitea, npeg }: + +buildNimPackage rec { + pname = "preserves"; + version = "20221102"; + src = fetchFromGitea { + domain = "git.syndicate-lang.org"; + owner = "ehmry"; + repo = "${pname}-nim"; + rev = version; + hash = "sha256-oRsq1ugtrOvTn23596BXRy71TQZ4h/Vv6JGqBTZdoKY="; + }; + propagatedBuildInputs = [ npeg ]; + doCheck = !stdenv.isDarwin; + meta = src.meta // { + description = "Nim implementation of the Preserves data language"; + license = lib.licenses.unlicense; + maintainers = with lib.maintainers; [ ehmry ]; + }; +} diff --git a/pkgs/development/nim-packages/safeset/default.nix b/pkgs/development/nim-packages/safeset/default.nix new file mode 100644 index 0000000000000..df613143e9a80 --- /dev/null +++ b/pkgs/development/nim-packages/safeset/default.nix @@ -0,0 +1,22 @@ +{ lib, buildNimPackage, fetchFromGitHub }: +buildNimPackage rec { + pname = "safeset"; + + version = "0.1.1"; + + src = fetchFromGitHub { + owner = "avahe-kellenberger"; + repo = pname; + rev = "v${version}"; + hash = "sha256-ZLdStoNVoQhRkD2iEzKxhs1UPfgnbJM9QCDHdjH7vTU="; + }; + + doCheck = true; + + meta = with lib; + src.meta // { + description = "safeset library for nim"; + license = [ licenses.gpl2 ]; + maintainers = [ maintainers.marcusramberg ]; + }; +} diff --git a/pkgs/development/nim-packages/syndicate/default.nix b/pkgs/development/nim-packages/syndicate/default.nix new file mode 100644 index 0000000000000..62f7ca936f78d --- /dev/null +++ b/pkgs/development/nim-packages/syndicate/default.nix @@ -0,0 +1,20 @@ +{ lib, buildNimPackage, fetchFromGitea, nimSHA2, preserves }: + +buildNimPackage rec { + pname = "syndicate"; + version = "20221102"; + src = fetchFromGitea { + domain = "git.syndicate-lang.org"; + owner = "ehmry"; + repo = "${pname}-nim"; + rev = version; + hash = "sha256-yTPbEsBcpEPXfmhykbWzWdnJ2ExEJxdii1L+mqx8VGQ="; + }; + propagatedBuildInputs = [ nimSHA2 preserves ]; + doCheck = true; + meta = src.meta // { + description = "Nim implementation of the Syndicated Actor model"; + license = lib.licenses.unlicense; + maintainers = with lib.maintainers; [ ehmry ]; + }; +} diff --git a/pkgs/development/nim-packages/x11/default.nix b/pkgs/development/nim-packages/x11/default.nix new file mode 100644 index 0000000000000..abfac2e4b8377 --- /dev/null +++ b/pkgs/development/nim-packages/x11/default.nix @@ -0,0 +1,22 @@ +{ lib, buildNimPackage, fetchFromGitHub }: + +buildNimPackage rec { + pname = "x11"; + version = "1.1"; + + src = fetchFromGitHub { + owner = "nim-lang"; + repo = pname; + rev = "2093a4c01360cbb5dd33ab79fd4056e148b53ca1"; + hash = "sha256-2XRyXiBxAc9Zx/w0zRBHRZ240qww0FJvIvOKZ8YH50A="; + }; + + doCheck = true; + + meta = with lib; + src.meta // { + description = "X11 library for nim"; + license = [ licenses.mit ]; + maintainers = [ maintainers.marcusramberg ]; + }; +} |