blob: 8e317102b36535b7caac68c383c90005f5089f0b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{ lib
, fetchurl
, stdenv
, undmg
, nix-update-script
}:
stdenv.mkDerivation rec {
pname = "iina";
version = "1.3.3";
src = fetchurl {
url = "https://github.com/iina/iina/releases/download/v${version}/IINA.v${version}.dmg";
hash = "sha256-Sz9sS+07t32+KcEr9tXQlZKEr7Ace1mjX9caOicIiZE=";
};
nativeBuildInputs = [ undmg ];
sourceRoot = "IINA.app";
installPhase = ''
mkdir -p "$out/Applications/IINA.app"
cp -R . "$out/Applications/IINA.app"
'';
passthru.updateScript = nix-update-script { };
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 ];
};
}
|