Skip to content

Commit 705de36

Browse files
committed
nix(package): reading version from cargo manifest file
1 parent 6532d55 commit 705de36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{pkgs ? import <nixpkgs> {}, ...}:
22
pkgs.rustPlatform.buildRustPackage rec {
33
pname = "battery-notifier";
4-
version = "unstable";
4+
version = (builtins.fromTOML (builtins.readFile ./Cargo.toml)).package.version;
55

66
src = builtins.path {
77
name = "${pname}-source";

0 commit comments

Comments
 (0)