nixpkgs/pkgs/by-name/ii/iina/package.nix

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

44 lines
1.0 KiB
Nix
Raw Normal View History

2024-06-01 22:37:09 +00:00
{
lib,
fetchurl,
stdenvNoCC,
undmg,
nix-update-script,
2021-11-26 21:10:06 +00:00
}:
stdenvNoCC.mkDerivation (finalAttrs: {
2021-11-26 21:10:06 +00:00
pname = "iina";
version = "1.3.5";
2021-11-26 21:10:06 +00:00
src = fetchurl {
2024-06-01 22:31:41 +00:00
url = "https://github.com/iina/iina/releases/download/v${finalAttrs.version}/IINA.v${finalAttrs.version}.dmg";
hash = "sha256-O4uRmfQaGMKqizDlgk0MnazMHVkXaDLqZQ9TP8vcajg=";
2021-11-26 21:10:06 +00:00
};
nativeBuildInputs = [ undmg ];
sourceRoot = "IINA.app";
installPhase = ''
2024-01-02 01:16:41 +00:00
mkdir -p $out/{bin,Applications/IINA.app}
2021-11-26 21:10:06 +00:00
cp -R . "$out/Applications/IINA.app"
2024-01-02 01:16:41 +00:00
ln -s "$out/Applications/IINA.app/Contents/MacOS/iina-cli" "$out/bin/iina"
2021-11-26 21:10:06 +00:00
'';
passthru.updateScript = nix-update-script { };
2024-06-01 22:34:40 +00:00
meta = {
description = "Modern media player for macOS";
2024-06-01 22:33:48 +00:00
homepage = "https://iina.io/";
2024-06-01 22:34:40 +00:00
license = lib.licenses.gpl3;
2024-06-01 22:37:09 +00:00
maintainers = with lib.maintainers; [
arkivm
donteatoreo
stepbrobd
];
2024-06-01 22:33:48 +00:00
mainProgram = "iina";
2024-06-01 22:34:40 +00:00
platforms = lib.platforms.darwin;
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
2021-11-26 21:10:06 +00:00
};
2024-06-01 22:31:41 +00:00
})