chore(server): Read package details from Cargo.toml
This commit is contained in:
parent
92e3fc6602
commit
4b0e6f0a8c
1 changed files with 10 additions and 3 deletions
|
|
@ -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 = ./.;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue