diff --git a/.gitignore b/.gitignore index cddd0b3..7016614 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .idea -main +bwbox +result diff --git a/main.nim b/bwbox.nim similarity index 100% rename from main.nim rename to bwbox.nim diff --git a/bwbox.nimble b/bwbox.nimble new file mode 100644 index 0000000..622251f --- /dev/null +++ b/bwbox.nimble @@ -0,0 +1,13 @@ +# Package + +version = "1.0.0" +author = "mawalu" +description = "A DNS server for the ACME DNS-01 challenge" +license = "MIT" +srcDir = "." +bin = @["bwbox"] + + +# Dependencies + +requires "nim >= 1.6.0" diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..78629d1 --- /dev/null +++ b/flake.lock @@ -0,0 +1,26 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1649321570, + "narHash": "sha256-j0SM2JzxKA3aGdH1QJUWqKW7lkHG1fuGLnPye4pBTBY=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "2c6bdafd36837e6422d18837ca1c77159be28a5a", + "type": "github" + }, + "original": { + "owner": "NixOS", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..bf80e0a --- /dev/null +++ b/flake.nix @@ -0,0 +1,16 @@ +{ + description = "An experimental sandbox tool for linux apps"; + + inputs.nixpkgs.url = github:NixOS/nixpkgs; + + outputs = { self, nixpkgs }: { + + packages.x86_64-linux.default = + with import nixpkgs { system = "x86_64-linux"; }; + nimPackages.buildNimPackage { + name = "bwbox"; + src = self; + }; + + }; +}