From ddbcb09c23b32cbb519e69bbe83cc124337b3f58 Mon Sep 17 00:00:00 2001 From: Vikram Narayanan Date: Fri, 26 Nov 2021 13:10:06 -0800 Subject: [PATCH] iina: init at 1.2.0 --- pkgs/applications/video/iina/default.nix | 32 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/applications/video/iina/default.nix diff --git a/pkgs/applications/video/iina/default.nix b/pkgs/applications/video/iina/default.nix new file mode 100644 index 000000000000..3adb2a926d28 --- /dev/null +++ b/pkgs/applications/video/iina/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 931c290d4193..f273974897ea 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3233,6 +3233,8 @@ with pkgs; ifm = callPackage ../tools/graphics/ifm {}; + iina = callPackage ../applications/video/iina { }; + ink = callPackage ../tools/misc/ink { }; inklecate = callPackage ../development/compilers/inklecate {};