mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-03 17:14:08 +02:00
auto detect version
This commit is contained in:
parent
0f0733e961
commit
b605290d43
1 changed files with 3 additions and 2 deletions
|
|
@ -6,13 +6,14 @@
|
|||
lib,
|
||||
}: let
|
||||
inherit (lib.sources) sourceByRegex;
|
||||
inherit (builtins) fromTOML readFile;
|
||||
src = sourceByRegex ./. ["Cargo.*" "(src)(/.*)?"];
|
||||
version = (fromTOML (readFile ./Cargo.toml)).package.version;
|
||||
in
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "haze";
|
||||
version = "0.1.0";
|
||||
|
||||
inherit src;
|
||||
inherit src version;
|
||||
|
||||
cargoLock = {
|
||||
lockFile = ./Cargo.lock;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue