mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-02 02:03:21 +00:00
Merge pull request #310810 from ilya-epifanov/nwjs-ffmpeg-prebuilt
nwjs-ffmpeg-prebuilt: init at 0.89.0
This commit is contained in:
commit
64b9cf1101
54
pkgs/by-name/nw/nwjs-ffmpeg-prebuilt/package.nix
Normal file
54
pkgs/by-name/nw/nwjs-ffmpeg-prebuilt/package.nix
Normal file
@ -0,0 +1,54 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
unzip,
|
||||
}:
|
||||
|
||||
let
|
||||
bits = if stdenv.is64bit then "x64" else "ia32";
|
||||
version = "0.89.0";
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
pname = "nwjs-ffmpeg-prebuilt";
|
||||
inherit version;
|
||||
|
||||
src =
|
||||
let
|
||||
hashes = {
|
||||
"x64" = "sha256-uaCGZsPQrA1dl90IqRg7TgWMJyQAGBBF/qNBTShVHcY=";
|
||||
"ia32" = "sha256-uaCGZsPQrA1dl90IqRg7TgWMJyQAGBBF/qNBTShVHcY=";
|
||||
};
|
||||
in
|
||||
fetchurl {
|
||||
url = "https://github.com/nwjs-ffmpeg-prebuilt/nwjs-ffmpeg-prebuilt/releases/download/${version}/${version}-linux-${bits}.zip";
|
||||
hash = hashes.${bits};
|
||||
};
|
||||
sourceRoot = ".";
|
||||
|
||||
nativeBuildInputs = [ unzip ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/lib
|
||||
cp -R libffmpeg.so $out/lib/
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "An app runtime based on Chromium and node.js";
|
||||
homepage = "https://nwjs.io/";
|
||||
platforms = [
|
||||
"i686-linux"
|
||||
"x86_64-linux"
|
||||
];
|
||||
sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
|
||||
maintainers = with lib.maintainers; [
|
||||
ilya-epifanov
|
||||
mikaelfangel
|
||||
];
|
||||
license = lib.licenses.gpl2Plus;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user