We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3ec716 commit bd2b6dfCopy full SHA for bd2b6df
flake.nix
@@ -41,7 +41,14 @@
41
let pkgs = import nixpkgs { inherit system; };
42
in pkgs.rustPlatform.buildRustPackage {
43
pname = "amp";
44
- version = "0.7.0";
+
45
+ # Extract the version from the Rust project
46
+ version = builtins.head
47
+ (
48
+ builtins.match "version = \"([^\"]+)\""
49
+ (builtins.readFile ./Cargo.toml)
50
+ );
51
52
cargoLock.lockFile = ./Cargo.lock;
53
54
# Use source files without version control noise
0 commit comments