Flake: read version from Cargo.toml

This commit is contained in:
Rien Maertens 2024-01-09 17:52:10 +01:00
parent 1f551c464a
commit cd6457df77
No known key found for this signature in database
GPG Key ID: AE66CE42F1AF9DEF

View File

@ -19,7 +19,7 @@
};
restream-bin = pkgs.stdenv.mkDerivation {
name = "restream";
version = "0.0.1";
version = (pkgs.lib.importTOML ./Cargo.toml).package.version;
src = ./.;
nativeBuildInputs = [ pkgs.makeWrapper pkgs.lz4 pkgs.ffmpeg-full ];
buildInputs = [ pkgs.lz4 ];