diff --git a/flake.nix b/flake.nix index d0c3479..430150f 100644 --- a/flake.nix +++ b/flake.nix @@ -30,6 +30,9 @@ inherit (nixpkgs) lib; forAllSystems = lib.genAttrs lib.systems.flakeExposed; + # Read version from Cargo.toml as single source of truth + version = (builtins.fromTOML (builtins.readFile ./Cargo.toml)).package.version; + mkPkgs = system: import nixpkgs { @@ -58,7 +61,7 @@ commonArgs = { src = craneLib.path ./.; pname = "streamd"; - version = "0.1.0"; + inherit version; strictDeps = true; };