Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
packages = rec {
default = pkgs.rustPlatform.buildRustPackage {
pname = "spotatui";
version = "0.36.3-debug.1";
src = ./.;
version = "0.37.2";
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe deriving the version from Cargo.toml is better then hardcoding the version in
version = (builtins.fromTOML (builtins.readFile ./Cargo.toml)).package.version

Im not sure if that is the correct syntax but something like that

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean that probably is the correct as I overlooked the version (I just aligned it and didn't give much thought)
Since this is building form source personally it would make more sense to be {version}-{shortCommitHash}
This version "doesn't matter" as it's only really shown when the project is building

image

Since i have the version set to 0.0.0 that's the version that shows up during the compile. If you look at it and watch for when cargo get's to spotatui it still is loading 0.37.2 anyways

Id love to know what you think on this and what the "best approach" would be

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I forgot to add a photo of what the version I proposed looked liked so here that is now.

image

dirty isn't always going to be a thing and probably won't be as it's only showing up because I have changes in my git thus making it dirty

src = self;

cargoLock = {
lockFile = ./Cargo.lock;
Expand Down
Loading