hdr10plus: decouple the src from hdr10plus_tool

The main reason for this is cargo-c latest version is not available in master yet.
This will need to be reverted in staging once https://github.com/NixOS/nixpkgs/pull/413726 is merged

Signed-off-by: John Titor <50095635+JohnRTitor@users.noreply.github.com>

+15 -3
+15 -3
pkgs/by-name/hd/hdr10plus/package.nix
··· 4 4 rust, 5 5 rustPlatform, 6 6 hdr10plus_tool, 7 + fetchFromGitHub, 7 8 cargo-c, 8 9 fontconfig, 9 10 }: ··· 16 17 __structuredAttrs = true; 17 18 18 19 pname = "hdr10plus"; 19 - version = "2.1.4"; 20 + # Version of the library, not the tool 21 + # See https://github.com/quietvoid/hdr10plus_tool/blob/main/hdr10plus/Cargo.toml 22 + version = "2.1.3"; 23 + 24 + src = fetchFromGitHub { 25 + owner = "quietvoid"; 26 + repo = "hdr10plus_tool"; 27 + # repo release snapshots are versioned per the tool 28 + # https://github.com/quietvoid/hdr10plus_tool/releases/latest 29 + tag = "1.7.0"; 30 + hash = "sha256-eueB+ZrOrnySEwUpCTvC4qARCsDcHJhm088XepLTlOE="; 31 + }; 32 + 33 + cargoHash = "sha256-3D0HjDtKwYoi9bpQnosC/TPNBjfiWi5m1CH1eGQpGg0="; 20 34 21 35 outputs = [ 22 36 "out" 23 37 "dev" 24 38 ]; 25 - 26 - inherit (hdr10plus_tool) src cargoDeps cargoHash; 27 39 28 40 nativeBuildInputs = [ cargo-c ]; 29 41 buildInputs = [ fontconfig ];