Rename the project and some flake details #4
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -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",
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue