mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 02:03:01 +00:00
33 lines
691 B
Nix
33 lines
691 B
Nix
{ lib
|
|
, fetchurl
|
|
, stdenv
|
|
, undmg
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "iina";
|
|
version = "1.3.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/iina/iina/releases/download/v${version}/IINA.v${version}.dmg";
|
|
sha256 = "sha256-xkZkKiiEywUWkiFw4PbUmQsStB1iRLCNU/MY27lRjC8=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|