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" checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c"
[[package]] [[package]]
name = "tlaternet" name = "tlaternet-webserver"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"check-if-email-exists", "check-if-email-exists",

View file

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

View file

@ -20,11 +20,11 @@
outputs = { self, nixpkgs, flake-utils, rust-overlay, naersk }@inputs: outputs = { self, nixpkgs, flake-utils, rust-overlay, naersk }@inputs:
flake-utils.lib.simpleFlake { flake-utils.lib.simpleFlake {
inherit self nixpkgs; inherit self nixpkgs;
name = "tlaternet"; name = "tlaternet-webserver";
preOverlays = [ rust-overlay.overlay ]; preOverlays = [ rust-overlay.overlay ];
overlay = final: prev: { overlay = final: prev: {
tlaternet = let tlaternet-webserver = let
# The rust toolchain to use # The rust toolchain to use
toolchain = toolchain =
prev.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml; prev.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
@ -43,7 +43,7 @@
in rec { in rec {
# The packages provided by this flake # The packages provided by this flake
tlaternet = { packages = {
webserver = prev.callPackage webserver = prev.callPackage
({ rustPlatform, openssl, pkgconfig, ... }: ({ rustPlatform, openssl, pkgconfig, ... }:
naersk-lib.buildPackage { naersk-lib.buildPackage {
@ -53,7 +53,7 @@
root = ./.; root = ./.;
}) { }; }) { };
}; };
defaultPackage = tlaternet.webserver; defaultPackage = packages.webserver;
# A dev shell to hack manually; note this includes # A dev shell to hack manually; note this includes
# additional toolchain components # additional toolchain components