mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-08 14:03:29 +00:00
f8c4a98e8e
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/'
44 lines
1.0 KiB
Nix
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 ];
|
|
};
|
|
})
|