mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-19 23:21:27 +00:00
25 lines
601 B
Nix
25 lines
601 B
Nix
{
|
|
fetchzip,
|
|
revision,
|
|
system,
|
|
throwSystem,
|
|
}:
|
|
let
|
|
download =
|
|
(import ./browser-downloads.nix {
|
|
name = "ffmpeg";
|
|
inherit revision;
|
|
}).${system} or throwSystem;
|
|
in
|
|
fetchzip {
|
|
inherit (download) url stripRoot;
|
|
hash =
|
|
{
|
|
x86_64-linux = "sha256-AWTiui+ccKHxsIaQSgc5gWCJT5gYwIWzAEqSuKgVqZU=";
|
|
aarch64-linux = "sha256-1mOKO2lcnlwLsC6ob//xKnKrCOp94pw8X14uBxCdj0Q=";
|
|
x86_64-darwin = "sha256-zJ8BMzdneV6LlEt4I034l5u86dwW4UmO/UazWikpKV4=";
|
|
aarch64-darwin = "sha256-ky10UQj+XPVGpaWAPvKd51C5brml0y9xQ6iKcrxAMRc=";
|
|
}
|
|
.${system} or throwSystem;
|
|
}
|