commit 67f97aa275939400b6a3242c3935c9425cd6fd4e Author: ElnuDev Date: Thu Dec 28 19:16:35 2023 -0800 Initial commit diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..8392d15 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use flake \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fd1ba5d --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +.direnv +/result +main \ No newline at end of file diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..c278c7e --- /dev/null +++ b/flake.lock @@ -0,0 +1,25 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1703499205, + "narHash": "sha256-lF9rK5mSUfIZJgZxC3ge40tp1gmyyOXZ+lRY3P8bfbg=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "e1fa12d4f6c6fe19ccb59cac54b5b3f25e160870", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "type": "indirect" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..689a85f --- /dev/null +++ b/flake.nix @@ -0,0 +1,15 @@ +{ + description = ""; + + outputs = { self, nixpkgs }: + let + system = "x86_64-linux"; + pkgs = import nixpkgs { + inherit system; + }; + in { + devShells.${system}.default = pkgs.mkShell { + packages = with pkgs; [ nim nimlsp ]; + }; + }; +} diff --git a/main.nim b/main.nim new file mode 100644 index 0000000..383aae9 --- /dev/null +++ b/main.nim @@ -0,0 +1,3 @@ +echo "Hello world!" +var name: string = readLine(stdin) +echo "Hi, ", name, "!" \ No newline at end of file