lol

bink-player: init at 2025.05

authored by

NilaTheDragon and committed by
Masum Reza
ca08829a 9809d1ed

+57
+57
pkgs/by-name/bi/bink-player/package.nix
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchurl, 5 + autoPatchelfHook, 6 + p7zip, 7 + libGL, 8 + libX11, 9 + }: 10 + 11 + stdenv.mkDerivation (finalAttrs: { 12 + pname = "bink-player"; 13 + version = "2025.05"; 14 + 15 + src = fetchurl { 16 + url = "https://web.archive.org/web/20250602103030if_/https://www.radgametools.com/down/Bink/BinkLinuxPlayer.7z"; 17 + hash = "sha256-A3IDQtdYlIcU2U8uieQI6xe1SvW4BqH+5ZwPYJxr83M="; 18 + }; 19 + 20 + unpackPhase = '' 21 + runHook preUnpack 22 + 23 + 7z x $src 24 + 25 + runHook postUnpack 26 + ''; 27 + 28 + nativeBuildInputs = [ 29 + autoPatchelfHook 30 + p7zip 31 + ]; 32 + 33 + buildInputs = [ 34 + stdenv.cc.cc.lib 35 + libGL 36 + libX11 37 + ]; 38 + 39 + installPhase = '' 40 + runHook preInstall 41 + 42 + install -Dm755 BinkPlayer64 -t $out/bin/ 43 + install -Dm755 BinkPlayer -t $out/bin/ 44 + 45 + runHook postInstall 46 + ''; 47 + 48 + meta = { 49 + description = "Play videos in the Bink format"; 50 + homepage = "https://www.radgametools.com/bnkmain.htm"; 51 + sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; 52 + license = lib.licenses.unfree; 53 + mainProgram = "BinkPlayer64"; 54 + maintainers = with lib.maintainers; [ nilathedragon ]; 55 + platforms = [ "x86_64-linux" ]; 56 + }; 57 + })