init
This commit is contained in:
commit
55213a4826
7 changed files with 48 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
bin/
|
||||
7
README
Normal file
7
README
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
|
||||
|
||||
|
||||
|
||||
Things to rewrite in Nim:
|
||||
1. https://git.sr.ht/~khumba/nvd/tree/master/item/src/nvd1
|
||||
2. https://github.com/maralorn/nix-output-monitor
|
||||
14
fenix.nimble
Normal file
14
fenix.nimble
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# Package
|
||||
|
||||
version = "0.1.0"
|
||||
author = "Emile Clark-Boman"
|
||||
description = "Improved toolchain for NixOS"
|
||||
license = "MIT"
|
||||
srcDir = "src"
|
||||
installExt = @["nim"]
|
||||
bin = @["fenix"]
|
||||
|
||||
|
||||
# Dependencies
|
||||
|
||||
requires "nim >= 2.2.0"
|
||||
7
src/fenix.nim
Normal file
7
src/fenix.nim
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# This is just an example to get you started. A typical hybrid package
|
||||
# uses this file as the main entry point of the application.
|
||||
|
||||
import fenix/submodule
|
||||
|
||||
when isMainModule:
|
||||
echo(getWelcomeMessage())
|
||||
6
src/fenix/submodule.nim
Normal file
6
src/fenix/submodule.nim
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# This is just an example to get you started. Users of your hybrid library will
|
||||
# import this file by writing ``import fenixpkg/submodule``. Feel free to rename or
|
||||
# remove this file altogether. You may create additional modules alongside
|
||||
# this file as required.
|
||||
|
||||
proc getWelcomeMessage*(): string = "Hello, World!"
|
||||
1
tests/config.nims
Normal file
1
tests/config.nims
Normal file
|
|
@ -0,0 +1 @@
|
|||
switch("path", "$projectDir/../src")
|
||||
12
tests/test1.nim
Normal file
12
tests/test1.nim
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# This is just an example to get you started. You may wish to put all of your
|
||||
# tests into a single file, or separate them into multiple `test1`, `test2`
|
||||
# etc. files (better names are recommended, just make sure the name starts with
|
||||
# the letter 't').
|
||||
#
|
||||
# To run these tests, simply execute `nimble test`.
|
||||
|
||||
import unittest
|
||||
|
||||
import fenix/submodule
|
||||
test "correct welcome":
|
||||
check getWelcomeMessage() == "Hello, World!"
|
||||
Loading…
Add table
Add a link
Reference in a new issue