Merge pull request #147532 from arkivm/darwin-init-iina

This commit is contained in:
Sandro 2022-01-21 00:56:24 +01:00 committed by GitHub
commit 63525691f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,32 @@
{ lib
, fetchurl
, stdenv
, undmg
}:
stdenv.mkDerivation rec {
pname = "iina";
version = "1.2.0";
src = fetchurl {
url = "https://github.com/iina/iina/releases/download/v${version}/IINA.v${version}.dmg";
sha256 = "sha256-kbh+gAVfCXoct6jJGXnetTAzFfIGdVLL5zh/SL/EJzY=";
};
nativeBuildInputs = [ undmg ];
sourceRoot = "IINA.app";
installPhase = ''
mkdir -p "$out/Applications/IINA.app"
cp -R . "$out/Applications/IINA.app"
'';
meta = with lib; {
homepage = "https://iina.io/";
description = "The modern media player for macOS";
platforms = platforms.darwin;
license = licenses.gpl3;
maintainers = with maintainers; [ arkivm ];
};
}

View File

@ -3230,6 +3230,8 @@ with pkgs;
ifm = callPackage ../tools/graphics/ifm {};
iina = callPackage ../applications/video/iina { };
ink = callPackage ../tools/misc/ink { };
inklecate = callPackage ../development/compilers/inklecate {};