2021-11-26 21:10:06 +00:00
|
|
|
{ lib
|
|
|
|
, fetchurl
|
|
|
|
, stdenv
|
|
|
|
, undmg
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "iina";
|
2022-08-02 02:50:33 +01:00
|
|
|
version = "1.3.0";
|
2021-11-26 21:10:06 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/iina/iina/releases/download/v${version}/IINA.v${version}.dmg";
|
2022-08-02 02:50:33 +01:00
|
|
|
sha256 = "sha256-tQxBaCgAXh7sDcgGbJYe/MOJ5r4aWllVQepi1I0xo5E=";
|
2021-11-26 21:10:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|