Skip to content

Commit 38198dd

Browse files
authored
Merge pull request #27 from ntsk/refactor/read-version-from-cargo-toml
Read version from Cargo.toml in flake.nix
2 parents bafd1d0 + 9b5902e commit 38198dd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

flake.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@
1010
flake-utils.lib.eachDefaultSystem (system:
1111
let
1212
pkgs = nixpkgs.legacyPackages.${system};
13+
cargoToml = builtins.fromTOML (builtins.readFile ./Cargo.toml);
1314
in
1415
{
1516
packages.default = pkgs.rustPlatform.buildRustPackage {
1617
pname = "rss";
17-
version = "0.1.0";
18+
version = cargoToml.package.version;
1819
src = ./.;
1920
cargoLock.lockFile = ./Cargo.lock;
2021

0 commit comments

Comments
 (0)