chore(server): Read package details from Cargo.toml

This commit is contained in:
Tristan Daniël Maat 2025-11-20 15:40:17 +08:00
parent 92e3fc6602
commit 4b0e6f0a8c
Signed by: tlater
GPG key ID: 02E935006CF2E8E7

View file

@ -1,4 +1,4 @@
{dream2nix, ...}: {
{ dream2nix, lib, ... }: {
imports = [
dream2nix.modules.dream2nix.rust-cargo-lock
dream2nix.modules.dream2nix.rust-cargo-vendor
@ -9,8 +9,15 @@
deps.cargo = fenix.stable.minimalToolchain;
};
name = "tlaternet-webserver";
version = "0.1.0";
inherit
((lib.pipe ./Cargo.toml [
builtins.readFile
builtins.fromTOML
]).package
)
name
version
;
mkDerivation = {
src = ./.;