Rename the project and some flake details #4

Manually merged
tlater merged 2 commits from tlater/rename into master 2021-04-09 19:18:00 +01:00
3 changed files with 6 additions and 6 deletions

2
Cargo.lock generated
View file

@ -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",

View file

@ -1,5 +1,5 @@
[package]
name = "tlaternet"
name = "tlaternet-webserver"
version = "0.1.0"
authors = ["Tristan Daniël Maat <tm@tlater.net>"]
edition = "2018"

View file

@ -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