31 lines
733 B
Nix
31 lines
733 B
Nix
|
with
|
||
|
(import <nixpkgs> { });
|
||
|
let
|
||
|
version = "2.6.1";
|
||
|
in
|
||
|
stdenv.mkDerivation
|
||
|
{
|
||
|
name = "shaka-packager-${version}";
|
||
|
|
||
|
# https://nixos.wiki/wiki/Packaging/Binaries
|
||
|
src = pkgs.fetchurl {
|
||
|
url =
|
||
|
"https://github.com/shaka-project/shaka-packager/releases/download/v${version}/packager-linux-x64";
|
||
|
sha256 = "sha256-MoMX6PEtvPmloXJwRpnC2lHlT+tozsV4dmbCqweyyI0=";
|
||
|
};
|
||
|
|
||
|
dontUnpack = true;
|
||
|
sourceRoot = ".";
|
||
|
|
||
|
installPhase = ''
|
||
|
install -m755 -D $src $out/bin/shaka-packager
|
||
|
'';
|
||
|
|
||
|
meta = with lib; {
|
||
|
homepage = "https://shaka-project.github.io/shaka-packager/html/";
|
||
|
description =
|
||
|
"Media packaging framework for VOD and Live DASH and HLS applications";
|
||
|
platforms = platforms.x86_64-linux;
|
||
|
};
|
||
|
}
|