Skip to content

Commit

Permalink
nix(package): reading version from cargo manifest file
Browse files Browse the repository at this point in the history
  • Loading branch information
luisnquin committed Feb 5, 2024
1 parent 6532d55 commit 705de36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{pkgs ? import <nixpkgs> {}, ...}:
pkgs.rustPlatform.buildRustPackage rec {
pname = "battery-notifier";
version = "unstable";
version = (builtins.fromTOML (builtins.readFile ./Cargo.toml)).package.version;

src = builtins.path {
name = "${pname}-source";
Expand Down

0 comments on commit 705de36

Please sign in to comment.