tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
pharo: Tighten source and simplify meta.platforms
John Ericson
8 years ago
b152dcf8
c208ca63
+13
-9
2 changed files
expand all
collapse all
unified
split
pkgs
development
pharo
vm
build-vm-legacy.nix
wrapper
default.nix
+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
73
-
platforms = with stdenv.lib;
74
74
-
intersectLists
75
75
-
platforms.mesaPlatforms
76
76
-
(subtractLists platforms.darwin platforms.unix);
73
73
+
platforms = stdenv.lib.filter
74
74
+
(system: with stdenv.lib.systems.elaborate { inherit system; };
75
75
+
isUnix && !isDarwin)
76
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
5
-
src = ./.;
5
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
20
+
unpackPhase = ''
21
21
+
cp $src ./pharo-vm.sh
22
22
+
sourceRoot=$PWD
23
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
52
-
platforms = with stdenv.lib;
53
53
-
intersectLists
54
54
-
platforms.mesaPlatforms
55
55
-
(subtractLists platforms.darwin platforms.unix);
56
56
+
platforms = stdenv.lib.filter
57
57
+
(system: with stdenv.lib.systems.elaborate { inherit system; };
58
58
+
isUnix && !isDarwin)
59
59
+
stdenv.lib.platforms.mesaPlatforms;
56
60
};
57
61
}
58
62