pharo: Tighten source and simplify meta.platforms

+13 -9
+4 -4
pkgs/development/pharo/vm/build-vm-legacy.nix
··· 70 70 license = stdenv.lib.licenses.mit; 71 71 maintainers = [ stdenv.lib.maintainers.lukego ]; 72 72 # Pharo VM sources are packaged separately for darwin (OS X) 73 - platforms = with stdenv.lib; 74 - intersectLists 75 - platforms.mesaPlatforms 76 - (subtractLists platforms.darwin platforms.unix); 73 + platforms = stdenv.lib.filter 74 + (system: with stdenv.lib.systems.elaborate { inherit system; }; 75 + isUnix && !isDarwin) 76 + stdenv.lib.platforms.mesaPlatforms; 77 77 }; 78 78 }
+9 -5
pkgs/development/pharo/wrapper/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "pharo"; 5 - src = ./.; 5 + src = ./pharo-vm.sh; 6 6 inherit cog32 spur32 spur64 file; 7 7 magic = ./magic; 8 8 desktopItem = makeDesktopItem { ··· 17 17 categories = "Development;"; 18 18 mimeType = "application/x-pharo-image"; 19 19 }; 20 + unpackPhase = '' 21 + cp $src ./pharo-vm.sh 22 + sourceRoot=$PWD 23 + ''; 20 24 buildPhase = '' 21 25 substituteAllInPlace ./pharo-vm.sh 22 26 ''; ··· 49 53 license = stdenv.lib.licenses.mit; 50 54 maintainers = [ stdenv.lib.maintainers.lukego ]; 51 55 # Pharo VM sources are packaged separately for darwin (OS X) 52 - platforms = with stdenv.lib; 53 - intersectLists 54 - platforms.mesaPlatforms 55 - (subtractLists platforms.darwin platforms.unix); 56 + platforms = stdenv.lib.filter 57 + (system: with stdenv.lib.systems.elaborate { inherit system; }; 58 + isUnix && !isDarwin) 59 + stdenv.lib.platforms.mesaPlatforms; 56 60 }; 57 61 } 58 62