File tree Expand file tree Collapse file tree 3 files changed +37
-7
lines changed Expand file tree Collapse file tree 3 files changed +37
-7
lines changed Original file line number Diff line number Diff line change 6
6
} ;
7
7
8
8
inputs = rec {
9
+ purs-0_15_10 = import ./purs/0.15.10.nix {
10
+ inherit pkgs ;
11
+ } ;
9
12
purs-0_15_9 = import ./purs/0.15.9.nix {
10
13
inherit pkgs ;
11
14
} ;
103
106
inherit pkgs ;
104
107
} ;
105
108
106
- purs = purs-0_15_9 ;
109
+ purs = purs-0_15_10 ;
107
110
108
111
purs-simple = purs ;
109
112
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.10" ;
5
+
6
+ urls = {
7
+ "x86_64-linux" = {
8
+ url = "https://github.com/purescript/purescript/releases/download/${ version } /linux64.tar.gz" ;
9
+ sha256 = "03p5f2m5xvrqgiacs4yfc2dgz6frlxy90h6z1nm6wan40p2vd41r" ;
10
+ } ;
11
+ "x86_64-darwin" = {
12
+ url = "https://github.com/purescript/purescript/releases/download/${ version } /macos.tar.gz" ;
13
+ sha256 = "14yd00v3dsnnwj2f645vy0apnp1843ms9ffd2ccv7bj5p4kxsdzg" ;
14
+ } ;
15
+ "aarch64-darwin" = {
16
+ url = "https://github.com/purescript/purescript/releases/download/${ version } /macos-arm64.tar.gz" ;
17
+ sha256 = "1pk6mkjy09qvh8lsygb5gb77i2fqwjzz8jdjkxlyzynp3wpkcjp7" ;
18
+ } ;
19
+ } ;
20
+
21
+ src =
22
+ if builtins . hasAttr system urls then
23
+ ( pkgs . fetchurl urls . ${ system } )
24
+ else
25
+ throw "Architecture not supported: ${ system } " ;
26
+ in
27
+ import ./mkPursDerivation.nix {
28
+ inherit pkgs version src ;
29
+ }
Original file line number Diff line number Diff line change 12
12
url = "https://github.com/purescript/purescript/releases/download/${ version } /macos.tar.gz" ;
13
13
sha256 = "1xxg79rlf7li9f73wdbwif1dyy4hnzpypy6wx4zbnvap53habq9f" ;
14
14
} ;
15
+ "aarch64-darwin" = {
16
+ url = "https://github.com/purescript/purescript/releases/download/${ version } /macos-arm64.tar.gz" ;
17
+ sha256 = "16ci26pgrw0zmnyn1zj129y9624cqwzrhqglc8mgfg4k7rxvqy2a" ;
18
+ } ;
15
19
} ;
16
20
17
21
src =
18
22
if builtins . hasAttr system urls then
19
23
( 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
24
else
27
25
throw "Architecture not supported: ${ system } " ;
28
26
in
You can’t perform that action at this time.
0 commit comments