chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / by-name / nw / nwjs-ffmpeg-prebuilt / package.nix
blobc4b85cac55bbedf57b3d708f7b69a195f38cce51
2   lib,
3   stdenv,
4   fetchurl,
5   unzip,
6 }:
8 let
9   bits = if stdenv.hostPlatform.is64bit then "x64" else "ia32";
10   version = "0.92.0";
12 stdenv.mkDerivation {
13   pname = "nwjs-ffmpeg-prebuilt";
14   inherit version;
16   src =
17     let
18       hashes = {
19         "x64" = "sha256-0Y0m9wGZGqH78LTPSWw+OCTvxd6kmIjuYzSaepwt9/I=";
20         "ia32" = "sha256-0Y0m9wGZGqH78LTPSWw+OCTvxd6kmIjuYzSaepwt9/I=";
21       };
22     in
23     fetchurl {
24       url = "https://github.com/nwjs-ffmpeg-prebuilt/nwjs-ffmpeg-prebuilt/releases/download/${version}/${version}-linux-${bits}.zip";
25       hash = hashes.${bits};
26     };
27   sourceRoot = ".";
29   nativeBuildInputs = [ unzip ];
31   installPhase = ''
32     runHook preInstall
34     mkdir -p $out/lib
35     cp -R libffmpeg.so $out/lib/
37     runHook postInstall
38   '';
40   meta = {
41     description = "An app runtime based on Chromium and node.js";
42     homepage = "https://nwjs.io/";
43     platforms = [
44       "i686-linux"
45       "x86_64-linux"
46     ];
47     sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
48     maintainers = with lib.maintainers; [
49       ilya-epifanov
50       mikaelfangel
51     ];
52     license = lib.licenses.gpl2Plus;
53   };