11 filename = "packager-linux-x64";
12 hash = "sha256-MoMX6PEtvPmloXJwRpnC2lHlT+tozsV4dmbCqweyyI0=";
15 filename = "packager-linux-arm64";
16 hash = "sha256-6+7SfnwVRsqFwI7/1F7yqVtkJVIoOFUmhoGU3P6gdQ0=";
19 filename = "packager-osx-x64";
20 hash = "sha256-fFBtOp/Zb37LP7TWAEB0yp0xM88cMT9QS59EwW4MrAY=";
24 source = sources."${stdenv.hostPlatform.system}"
25 or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
27 stdenv.mkDerivation (finalAttrs: {
28 pname = "shaka-packager";
32 url = "https://github.com/shaka-project/shaka-packager/releases/download/v${finalAttrs.version}/${source.filename}";
33 inherit (source) hash;
42 install -m755 -D $src $out/bin/packager
48 simple = runCommand "${finalAttrs.pname}-test" { } ''
49 ${shaka-packager}/bin/packager -version | grep ${finalAttrs.version} > $out
54 description = "Media packaging framework for VOD and Live DASH and HLS applications";
55 homepage = "https://shaka-project.github.io/shaka-packager/html/";
56 license = lib.licenses.bsd3;
57 mainProgram = "packager";
58 maintainers = with lib.maintainers; [ ];
59 platforms = builtins.attrNames sources;
60 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];