nixpkgs/pkgs/by-name/ii/iina/package.nix
Alexis Hildebrandt f8c4a98e8e treewide: Remove the definite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"([Tt]he)? ' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Tt]he (.)/\1\U\2/'
2024-06-09 23:08:46 +02:00

44 lines
1.0 KiB
Nix

{
lib,
fetchurl,
stdenvNoCC,
undmg,
nix-update-script,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "iina";
version = "1.3.5";
src = fetchurl {
url = "https://github.com/iina/iina/releases/download/v${finalAttrs.version}/IINA.v${finalAttrs.version}.dmg";
hash = "sha256-O4uRmfQaGMKqizDlgk0MnazMHVkXaDLqZQ9TP8vcajg=";
};
nativeBuildInputs = [ undmg ];
sourceRoot = "IINA.app";
installPhase = ''
mkdir -p $out/{bin,Applications/IINA.app}
cp -R . "$out/Applications/IINA.app"
ln -s "$out/Applications/IINA.app/Contents/MacOS/iina-cli" "$out/bin/iina"
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "Modern media player for macOS";
homepage = "https://iina.io/";
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [
arkivm
donteatoreo
stepbrobd
];
mainProgram = "iina";
platforms = lib.platforms.darwin;
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
};
})