default.nix (757B)
1 { 2 lib, 3 stdenv, 4 fetchurl, 5 undmg, 6 }: 7 8 stdenv.mkDerivation rec { 9 pname = "playonmac"; 10 version = "4.4.4"; 11 12 src = fetchurl { 13 url = "https://repository.playonmac.com/PlayOnMac/PlayOnMac_${version}.dmg"; 14 hash = "sha256-e+a+4W2N8+DKpd9vZHrEN6XE137X+hsRodsC7fnGZSI="; 15 }; 16 17 sourceRoot = "."; 18 19 nativeBuildInputs = [ undmg ]; 20 21 installPhase = '' 22 mkdir -p $out/Applications 23 cp -r *.app $out/Applications 24 ''; 25 26 dontPatchShebangs = true; 27 28 preferLocalBuild = true; 29 30 meta = { 31 description = "GUI for managing Windows programs under macOS"; 32 homepage = "https://www.playonmac.com/"; 33 license = lib.licenses.gpl3; 34 maintainers = [ lib.maintainers.sikmir ]; 35 platforms = [ "x86_64-darwin" ]; 36 skip.ci = true; 37 }; 38 }