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 rust, 5 rustPlatform, 6 hdr10plus_tool, 7 cargo-c, 8 fontconfig, 9 }: ··· 16 __structuredAttrs = true; 17 18 pname = "hdr10plus"; 19 - version = "2.1.4"; 20 21 outputs = [ 22 "out" 23 "dev" 24 ]; 25 - 26 - inherit (hdr10plus_tool) src cargoDeps cargoHash; 27 28 nativeBuildInputs = [ cargo-c ]; 29 buildInputs = [ fontconfig ];
··· 4 rust, 5 rustPlatform, 6 hdr10plus_tool, 7 + fetchFromGitHub, 8 cargo-c, 9 fontconfig, 10 }: ··· 17 __structuredAttrs = true; 18 19 pname = "hdr10plus"; 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="; 34 35 outputs = [ 36 "out" 37 "dev" 38 ]; 39 40 nativeBuildInputs = [ cargo-c ]; 41 buildInputs = [ fontconfig ];