Initial commit
This commit is contained in:
3
samples/shaka-packager/README.md
Normal file
3
samples/shaka-packager/README.md
Normal file
@ -0,0 +1,3 @@
|
||||
# shaka-packager
|
||||
|
||||
Source: https://fasterthanli.me/series/building-a-rust-service-with-nix/part-9#a-real-world-mkderivation
|
30
samples/shaka-packager/default.nix
Normal file
30
samples/shaka-packager/default.nix
Normal file
@ -0,0 +1,30 @@
|
||||
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;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user