nixpkgs/pkgs/applications/video/iina/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
832 B
Nix
Raw Normal View History

2021-11-26 21:10:06 +00:00
{ lib
, fetchurl
, stdenv
, undmg
, nix-update-script
2021-11-26 21:10:06 +00:00
}:
stdenv.mkDerivation rec {
pname = "iina";
version = "1.3.3";
2021-11-26 21:10:06 +00:00
src = fetchurl {
url = "https://github.com/iina/iina/releases/download/v${version}/IINA.v${version}.dmg";
hash = "sha256-Sz9sS+07t32+KcEr9tXQlZKEr7Ace1mjX9caOicIiZE=";
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"
'';
passthru.updateScript = nix-update-script { };
2021-11-26 21:10:06 +00:00
meta = with lib; {
homepage = "https://iina.io/";
description = "The modern media player for macOS";
platforms = platforms.darwin;
license = licenses.gpl3;
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
maintainers = with maintainers; [ arkivm stepbrobd ];
2021-11-26 21:10:06 +00:00
};
}