ctucx.git: nixfiles

ctucx' nixfiles

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 
{ 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;
#  };
}