summary refs log tree commit diff
path: root/pkgs/development/pharo
diff options
context:
space:
mode:
authorLuke Gorrie <luke@snabb.co>2017-06-30 07:30:02 +0000
committerLuke Gorrie <luke@snabb.co>2017-06-30 07:30:02 +0000
commit4ed1d53cbecccebe0ebe654b8847943e93ffd493 (patch)
tree5bae56390d7ce8bf02659630616a11fe8c217c4e /pkgs/development/pharo
parent86d3b59a951ccb0cd6d1750a002d0f5a951774da (diff)
downloadnixpkgs-4ed1d53cbecccebe0ebe654b8847943e93ffd493.tar
nixpkgs-4ed1d53cbecccebe0ebe654b8847943e93ffd493.tar.gz
nixpkgs-4ed1d53cbecccebe0ebe654b8847943e93ffd493.tar.bz2
nixpkgs-4ed1d53cbecccebe0ebe654b8847943e93ffd493.tar.lz
nixpkgs-4ed1d53cbecccebe0ebe654b8847943e93ffd493.tar.xz
nixpkgs-4ed1d53cbecccebe0ebe654b8847943e93ffd493.tar.zst
nixpkgs-4ed1d53cbecccebe0ebe654b8847943e93ffd493.zip
pharo: Add missing file: vms.nix
Diffstat (limited to 'pkgs/development/pharo')
-rw-r--r--pkgs/development/pharo/vm/vms.nix46
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/development/pharo/vm/vms.nix b/pkgs/development/pharo/vm/vms.nix
new file mode 100644
index 00000000000..15e8c3ef06e
--- /dev/null
+++ b/pkgs/development/pharo/vm/vms.nix
@@ -0,0 +1,46 @@
+{ cmake, stdenv, fetchurl, bash, unzip, glibc, openssl, gcc, mesa, freetype, xorg, alsaLib, cairo, libuuid, autoreconfHook, gcc6, fetchFromGitHub } @args:
+
+let
+  pharo-vm-build = import ./build-vm.nix args;
+  pharo-vm-build-legacy = import ./build-vm-legacy.nix args;
+in
+
+let suffix = if stdenv.is64bit then "64" else "32"; in
+
+rec {
+  # Build the latest VM
+  spur = pharo-vm-build rec {
+    name = "pharo-spur${suffix}";
+    version = "git.${revision}";
+    src = fetchFromGitHub {
+      owner = "pharo-project";
+      repo = "pharo-vm";
+      rev = revision;
+      sha256 = "0dkiy5fq1xn2n93cwf767xz24c01ic0wfw94jk9nvn7pmcfj7m62";
+    };
+    # This metadata will be compiled into the VM and introspectable
+    # from Smalltalk. This has been manually extracted from 'git log'.
+    #
+    # The build would usually generate this automatically using
+    # opensmalltalk-vm/.git_filters/RevDateURL.smudge but that script
+    # is too impure to run from nix.
+    revision = "6a63f68a3dd4deb7c17dd2c7ac6e4dd4b0b6d937";
+    source-date = "Tue May 30 19:41:27 2017 -0700";
+    source-url  = "https://github.com/pharo-project/pharo-vm";
+  };
+
+  # Build an old ("legacy") CogV3 VM for running pre-spur images.
+  # (Could be nicer to build the latest VM in CogV3 mode but this is
+  # not supported on the Pharo VM variant at the moment.)
+  cog = pharo-vm-build-legacy rec {
+    version = "2016.02.18";
+    name = "pharo-cog${suffix}";
+    base-url = http://files.pharo.org/vm/src/vm-unix-sources/blessed;
+    src = fetchurl {
+      url = "${base-url}/pharo-vm-${version}.tar.bz2";
+      sha256 = "16n2zg7v2s1ml0vvpbhkw6khmgn637sr0d7n2b28qm5yc8pfhcj4";
+    };
+  };
+
+}
+