diff --git a/Cargo.lock b/Cargo.lock index 1e2ab7c..839bc20 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2569,7 +2569,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" [[package]] -name = "tlaternet" +name = "tlaternet-webserver" version = "0.1.0" dependencies = [ "check-if-email-exists", diff --git a/Cargo.toml b/Cargo.toml index 79e1dc1..a700d8a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "tlaternet" +name = "tlaternet-webserver" version = "0.1.0" authors = ["Tristan Daniƫl Maat "] edition = "2018" diff --git a/flake.nix b/flake.nix index 5ed0bdb..ddf882a 100644 --- a/flake.nix +++ b/flake.nix @@ -20,11 +20,11 @@ outputs = { self, nixpkgs, flake-utils, rust-overlay, naersk }@inputs: flake-utils.lib.simpleFlake { inherit self nixpkgs; - name = "tlaternet"; + name = "tlaternet-webserver"; preOverlays = [ rust-overlay.overlay ]; overlay = final: prev: { - tlaternet = let + tlaternet-webserver = let # The rust toolchain to use toolchain = prev.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml; @@ -43,7 +43,7 @@ in rec { # The packages provided by this flake - tlaternet = { + packages = { webserver = prev.callPackage ({ rustPlatform, openssl, pkgconfig, ... }: naersk-lib.buildPackage { @@ -53,7 +53,7 @@ root = ./.; }) { }; }; - defaultPackage = tlaternet.webserver; + defaultPackage = packages.webserver; # A dev shell to hack manually; note this includes # additional toolchain components