pharo: Tighten source and simplify meta.platforms
This commit is contained in:
parent
c208ca6387
commit
b152dcf852
@ -70,9 +70,9 @@ stdenv.mkDerivation rec {
|
||||
license = stdenv.lib.licenses.mit;
|
||||
maintainers = [ stdenv.lib.maintainers.lukego ];
|
||||
# Pharo VM sources are packaged separately for darwin (OS X)
|
||||
platforms = with stdenv.lib;
|
||||
intersectLists
|
||||
platforms.mesaPlatforms
|
||||
(subtractLists platforms.darwin platforms.unix);
|
||||
platforms = stdenv.lib.filter
|
||||
(system: with stdenv.lib.systems.elaborate { inherit system; };
|
||||
isUnix && !isDarwin)
|
||||
stdenv.lib.platforms.mesaPlatforms;
|
||||
};
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "pharo";
|
||||
src = ./.;
|
||||
src = ./pharo-vm.sh;
|
||||
inherit cog32 spur32 spur64 file;
|
||||
magic = ./magic;
|
||||
desktopItem = makeDesktopItem {
|
||||
@ -17,6 +17,10 @@ stdenv.mkDerivation rec {
|
||||
categories = "Development;";
|
||||
mimeType = "application/x-pharo-image";
|
||||
};
|
||||
unpackPhase = ''
|
||||
cp $src ./pharo-vm.sh
|
||||
sourceRoot=$PWD
|
||||
'';
|
||||
buildPhase = ''
|
||||
substituteAllInPlace ./pharo-vm.sh
|
||||
'';
|
||||
@ -49,10 +53,10 @@ stdenv.mkDerivation rec {
|
||||
license = stdenv.lib.licenses.mit;
|
||||
maintainers = [ stdenv.lib.maintainers.lukego ];
|
||||
# Pharo VM sources are packaged separately for darwin (OS X)
|
||||
platforms = with stdenv.lib;
|
||||
intersectLists
|
||||
platforms.mesaPlatforms
|
||||
(subtractLists platforms.darwin platforms.unix);
|
||||
platforms = stdenv.lib.filter
|
||||
(system: with stdenv.lib.systems.elaborate { inherit system; };
|
||||
isUnix && !isDarwin)
|
||||
stdenv.lib.platforms.mesaPlatforms;
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user