File tree Expand file tree Collapse file tree 3 files changed +39
-5
lines changed Expand file tree Collapse file tree 3 files changed +39
-5
lines changed Original file line number Diff line number Diff line change 6
6
} ;
7
7
8
8
inputs = rec {
9
+ purs-0_15_9 = import ./purs/0.15.9.nix {
10
+ inherit pkgs ;
11
+ } ;
9
12
purs-0_15_8 = import ./purs/0.15.8.nix {
10
13
inherit pkgs ;
11
14
} ;
100
103
inherit pkgs ;
101
104
} ;
102
105
103
- purs = purs-0_15_8 ;
106
+ purs = purs-0_15_9 ;
104
107
105
108
purs-simple = purs ;
106
109
Original file line number Diff line number Diff line change
1
+ { pkgs ? import <nixpkgs> { } , system ? pkgs . stdenv . hostPlatform . system } :
2
+
3
+ let
4
+ version = "v0.15.9" ;
5
+
6
+ urls = {
7
+ "x86_64-linux" = {
8
+ url = "https://github.com/purescript/purescript/releases/download/${ version } /linux64.tar.gz" ;
9
+ sha256 = "0rabinklsd8bs16f03zv7ij6d1lv4w2xwvzzgkwc862gpqvz9jq3" ;
10
+ } ;
11
+ "x86_64-darwin" = {
12
+ url = "https://github.com/purescript/purescript/releases/download/${ version } /macos.tar.gz" ;
13
+ sha256 = "1xxg79rlf7li9f73wdbwif1dyy4hnzpypy6wx4zbnvap53habq9f" ;
14
+ } ;
15
+ } ;
16
+
17
+ src =
18
+ if builtins . hasAttr system urls then
19
+ ( pkgs . fetchurl urls . ${ system } )
20
+ else if system == "aarch64-darwin" then
21
+ let
22
+ useArch = "x86_64-darwin" ;
23
+ msg = "Using the non-native ${ useArch } binary. While this binary may run under Rosetta 2 translation, no guarantees can be made about stability or performance." ;
24
+ in
25
+ pkgs . lib . warn msg ( pkgs . fetchurl urls . ${ useArch } )
26
+ else
27
+ throw "Architecture not supported: ${ system } " ;
28
+ in
29
+ import ./mkPursDerivation.nix {
30
+ inherit pkgs version src ;
31
+ }
Original file line number Diff line number Diff line change 13
13
pkgs . stdenv . mkDerivation rec {
14
14
pname = "spago" ;
15
15
16
- version = "0.20.9 " ;
16
+ version = "0.21.0 " ;
17
17
18
18
src = if pkgs . stdenv . isDarwin
19
19
then pkgs . fetchurl {
20
20
url = "https://github.com/purescript/spago/releases/download/${ version } /macOS.tar.gz" ;
21
- sha256 = "1c6i4pdr23n65pahw0hgv8g99w1cmv1zxm6j3ih18ch1xq32dzq9 " ;
21
+ sha256 = "19c0kdg7gk1c7v00lnkcsxidffab84d50d6l6vgrjy4i86ilhzd5 " ;
22
22
}
23
23
else pkgs . fetchurl {
24
24
url = "https://github.com/purescript/spago/releases/download/${ version } /Linux.tar.gz" ;
25
- sha256 = "0d9hlr1lx5g4dmhs77wp1ccrpngfx84x082pi2fwfldr8xm6600m " ;
25
+ sha256 = "1klczy04vwn5b39cnxflcqzap0d5kysp4dsw73i95xm5m7s37049 " ;
26
26
} ;
27
27
28
28
buildInputs = [ pkgs . gmp pkgs . zlib pkgs . ncurses5 pkgs . stdenv . cc . cc . lib ] ;
@@ -38,10 +38,10 @@ pkgs.stdenv.mkDerivation rec {
38
38
SPAGO=$out/bin/spago
39
39
${ patchelf libPath }
40
40
41
-
42
41
mkdir -p $out/etc/bash_completion.d/
43
42
$SPAGO --bash-completion-script $SPAGO > $out/etc/bash_completion.d/spago-completion.bash
44
43
'' ;
45
44
46
45
dontInstall = true ;
47
46
}
47
+
You can’t perform that action at this time.
0 commit comments