mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
33 lines
789 B
Nix
33 lines
789 B
Nix
{ lib, stdenv, fetchurl
|
|
, dpkg
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "chromium-codecs-ffmpeg";
|
|
version = "78.0.3904.70";
|
|
|
|
src = fetchurl {
|
|
url = "https://launchpadlibrarian.net/449403909/${name}-extra_${version}-0ubuntu0.16.04.2_amd64.deb";
|
|
sha256 = "00j604nm49z6hbyw7xsxcvmdjf7117kb478plkpizzvmm3w72b9v";
|
|
};
|
|
|
|
buildInputs = [ dpkg ];
|
|
|
|
unpackPhase = ''
|
|
dpkg-deb -x $src .
|
|
find .
|
|
'';
|
|
|
|
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 lluchs ];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|