git.iko.soy/typeable/nixpkgs
on master help sign in
pharo: Tighten source and simplify meta.platforms
commitb152dcf852ecef3e30a632f0050abb30a26e1dfd authorJohn Ericson <John.Ericson@Obsidian.Systems> dateMon 12 Mar 2018, 15:18 (9 years ago) parentc208ca6
2 files changed+13−9
pkgs/development/pharo/vm/build-vm-legacy.nix+4−4 pkgs/development/pharo/wrapper/default.nix+9−5
pkgs/development/pharo/vm/build-vm-legacy.nix+4−4
@@ -70,9 +70,9 @@ stdenv.mkDerivation rec {
7070 license = stdenv.lib.licenses.mit;
7171 maintainers = [ stdenv.lib.maintainers.lukego ];
7272 # 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;
7777 };
7878}
pkgs/development/pharo/wrapper/default.nix+9−5
@@ -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