ctucx.git: nixfiles

ctucx' nixfiles

commit f403db29d1ce7301f9a6bc393fe15e3c350a7e9a
parent 72f2e95f9276c254c5254724fa39e283f793d30b
Author: Leah (ctucx) <leah@ctu.cx>
Date: Sat, 7 May 2022 13:38:04 +0200

pkgs/macApps: add IINA
1 file changed, 26 insertions(+), 0 deletions(-)
A
pkgs/macApps/IINA.nix
|
26
++++++++++++++++++++++++++
diff --git a/pkgs/macApps/IINA.nix b/pkgs/macApps/IINA.nix
@@ -0,0 +1,26 @@
+{ stdenv, fetchurl, undmg, ... }:
+
+stdenv.mkDerivation rec {
+  pname   = "IINA";
+  version = "1.2.0";
+
+  buildInputs  = [ undmg ];
+  sourceRoot   = ".";
+  phases       = [ "unpackPhase" "installPhase" ];
+  installPhase = ''
+    mkdir -p "$out/Applications"
+    cp -r "IINA.app" "$out/Applications/IINA.app"
+  '';
+
+  src = fetchurl {
+    name   = "IINA.${version}.dmg";
+    url    = "https://github.com/iina/iina/releases/download/v${version}/IINA.v${version}.dmg";
+    sha256 = "0di7qjzlhzrqwz5m4x86y8ak6c5mvrwikjd8nwf7l2az0n07xf4i";
+  };
+
+#  meta = with stdenv.lib; {
+#    description = "The modern video player for macOS.";
+#    homepage    = "https://github.com/iina/iina";
+#    platforms   = platforms.darwin;
+#  };
+}