File tree Expand file tree Collapse file tree 3 files changed +106
-0
lines changed Expand file tree Collapse file tree 3 files changed +106
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ description = "TinyGo" ;
3
+
4
+ inputs . flake-compat . flake = false ;
5
+ inputs . flake-compat . url = github:edolstra/flake-compat ;
6
+ inputs . flake-utils . url = github:numtide/flake-utils ;
7
+ inputs . nixpkgs . url = github:NixOS/nixpkgs ;
8
+
9
+ outputs = {
10
+ self ,
11
+ flake-utils ,
12
+ nixpkgs ,
13
+ ...
14
+ } :
15
+ flake-utils . lib . eachDefaultSystem (
16
+ system : let
17
+ pkgs = import nixpkgs {
18
+ inherit system ;
19
+ } ;
20
+ in {
21
+ formatter = pkgs . alejandra ;
22
+
23
+ devShells . default = pkgs . mkShell {
24
+ buildInputs = with pkgs ; [
25
+ go_1_18
26
+ llvm_14
27
+ llvmPackages_14 . libclang
28
+ python3
29
+ ] ;
30
+ } ;
31
+ }
32
+ ) ;
33
+ }
Original file line number Diff line number Diff line change
1
+ let
2
+ lock = builtins . fromJSON ( builtins . readFile ./flake.lock ) ;
3
+
4
+ fetchInputFromGithub = name :
5
+ with lock . nodes . ${ name } . locked ;
6
+ builtins . fetchTarball {
7
+ url = "https://github.com/${ owner } /${ repo } /archive/${ rev } .tar.gz" ;
8
+ sha256 = narHash ;
9
+ } ;
10
+ flakeCompat = fetchInputFromGithub "flake-compat" ;
11
+
12
+ flake = import flakeCompat { src = ./. ; } ;
13
+ in
14
+ flake . shellNix
You can’t perform that action at this time.
0 commit comments