@@ -2,7 +2,7 @@
22
33stdenv.mkDerivation rec {
44 name = "pharo";
5− src = ./.;
5+ src = ./pharo-vm.sh;
66 inherit cog32 spur32 spur64 file;
77 magic = ./magic;
88 desktopItem = makeDesktopItem {
@@ -17,6 +17,10 @@ stdenv.mkDerivation rec {
1717 categories = "Development;";
1818 mimeType = "application/x-pharo-image";
1919 };
20+ unpackPhase = ''
21+ cp $src ./pharo-vm.sh
22+ sourceRoot=$PWD
23+ '';
2024 buildPhase = ''
2125 substituteAllInPlace ./pharo-vm.sh
2226 '';
@@ -49,10 +53,10 @@ stdenv.mkDerivation rec {
4953 license = stdenv.lib.licenses.mit;
5054 maintainers = [ stdenv.lib.maintainers.lukego ];
5155 # 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;
5660 };
5761}
5862