mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-02 19:14:14 +00:00
30 lines
792 B
Nix
30 lines
792 B
Nix
{ dpkg, fetchurl, lib, stdenv }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "chromium-codecs-ffmpeg-extra";
|
|
version = "101.0.4951.15";
|
|
|
|
src = fetchurl {
|
|
url = "https://launchpadlibrarian.net/594594495/${pname}_${version}-0ubuntu0.18.04.1_amd64.deb";
|
|
sha256 = "sha256-aelr/jODmgyVunSFFn6W+QHEmSWJeWzU4SaS5rjHli4=";
|
|
};
|
|
|
|
buildInputs = [ dpkg ];
|
|
|
|
unpackPhase = ''
|
|
dpkg-deb -x $src .
|
|
'';
|
|
|
|
installPhase = ''
|
|
install -vD usr/lib/chromium-browser/libffmpeg.so $out/lib/libffmpeg.so
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Additional support for proprietary codecs for Vivaldi";
|
|
homepage = "https://ffmpeg.org/";
|
|
license = licenses.lgpl21;
|
|
maintainers = with maintainers; [ betaboon cawilliamson lluchs ];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|