package.nix (786B)
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 __structuredAttrs = true; 13 14 src = fetchurl { 15 url = "https://repository.playonmac.com/PlayOnMac/PlayOnMac_${version}.dmg"; 16 hash = "sha256-e+a+4W2N8+DKpd9vZHrEN6XE137X+hsRodsC7fnGZSI="; 17 }; 18 19 sourceRoot = "."; 20 21 nativeBuildInputs = [ undmg ]; 22 23 installPhase = '' 24 mkdir -p $out/Applications 25 cp -r *.app $out/Applications 26 ''; 27 28 dontPatchShebangs = true; 29 30 preferLocalBuild = true; 31 32 meta = { 33 description = "GUI for managing Windows programs under macOS"; 34 homepage = "https://www.playonmac.com/"; 35 license = lib.licenses.gpl3; 36 maintainers = [ lib.maintainers.sikmir ]; 37 platforms = [ "x86_64-darwin" ]; 38 skip.ci = true; 39 }; 40 }
