Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / pharo / vm / share.nix
bloba2a55f2eb437eb484c8316fec893affc8306b687
1 { lib, stdenv, fetchurl, unzip }:
3 stdenv.mkDerivation rec {
4   version = "1.0";
5   pname = "pharo-share";
7   dontUnpack = true;
9   sources10Zip = fetchurl {
10     url = "http://files.pharo.org/sources/PharoV10.sources.zip";
11     sha256 = "0aijhr3w5w3jzmnpl61g6xkwyi2l1mxy0qbvr9k3whz8zlrsijh2";
12   };
14   sources20Zip = fetchurl {
15     url = "http://files.pharo.org/sources/PharoV20.sources.zip";
16     sha256 = "1xsc0p361pp8iha5zckppw29sbapd706wbvzvgjnkv2n6n1q5gj7";
17   };
19   sources30Zip = fetchurl {
20     url = "http://files.pharo.org/sources/PharoV30.sources.zip";
21     sha256 = "08d9a7gggwpwgrfbp7iv5896jgqz3vgjfrq19y3jw8k10pva98ak";
22   };
24   sources40Zip = fetchurl {
25     url = "http://files.pharo.org/sources/PharoV40.sources.zip";
26     sha256 = "1xq1721ql19hpgr8ir372h92q7g8zwd6k921b21dap4wf8djqnpd";
27   };
29   sources50Zip = fetchurl {
30     url = "http://files.pharo.org/sources/PharoV50.sources.zip";
31     sha256 = "1vmcah03zacvj1r2x27vdp63g6rcbz3prjd5sjy1z0a9xsjmqp25";
32   };
34   sources60Zip = fetchurl {
35     url = "http://files.pharo.org/sources/PharoV60.sources.zip";
36     sha256 = "0xbdi679ryb2zg412xy6zkh22l20pmbl92m3qhfgzjvgybna8z2a";
37   };
39   nativeBuildInputs = [ unzip ];
41   installPhase = ''
42     mkdir -p $prefix/lib
44     unzip ${sources10Zip} -d $prefix/lib/
45     unzip ${sources20Zip} -d $prefix/lib/
46     unzip ${sources30Zip} -d $prefix/lib/
47     unzip ${sources40Zip} -d $prefix/lib/
48     unzip ${sources50Zip} -d $prefix/lib/
49     unzip ${sources60Zip} -d $prefix/lib/
50   '';
52   meta = {
53     description = "Shared files for Pharo";
54     homepage = "https://pharo.org";
55     license = lib.licenses.mit;
56     maintainers = [ ];
57   };