File tree Expand file tree Collapse file tree 4 files changed +80
-0
lines changed
Expand file tree Collapse file tree 4 files changed +80
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+ on :
3+ pull_request :
4+ push :
5+ branches : [main]
6+
7+ jobs :
8+ shellcheck :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v2
12+ with :
13+ fetch-depth : 0
14+ - name : Install Nix
15+ uses : cachix/install-nix-action@v16
16+ - name : Shellcheck
17+ run : nix-shell --run 'shellcheck $(find . -type f -name "*.sh" -executable)'
Original file line number Diff line number Diff line change 1+ {
2+ description = "update-flake-lock" ;
3+
4+ inputs . nixpkgs . url = "github:nixos/nixpkgs/nixos-unstable" ;
5+
6+ outputs =
7+ { self
8+ , nixpkgs
9+ } :
10+ let
11+ nameValuePair = name : value : { inherit name value ; } ;
12+ genAttrs = names : f : builtins . listToAttrs ( map ( n : nameValuePair n ( f n ) ) names ) ;
13+
14+ allSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ] ;
15+ forAllSystems = f : genAttrs allSystems
16+ ( system : f {
17+ inherit system ;
18+ pkgs = import nixpkgs { inherit system ; } ;
19+ } ) ;
20+ in
21+ {
22+ devShell = forAllSystems
23+ ( { system , pkgs , ... } :
24+ pkgs . stdenv . mkDerivation {
25+ name = "update-flake-lock-devshell" ;
26+ buildInputs = [ pkgs . shellcheck ] ;
27+ src = self ;
28+ } ) ;
29+ } ;
30+ }
Original file line number Diff line number Diff line change 1+ ( import
2+ ( fetchTarball {
3+ url = "https://github.com/edolstra/flake-compat/archive/99f1c2157fba4bfe6211a321fd0ee43199025dbf.tar.gz" ;
4+ sha256 = "0x2jn3vrawwv9xp15674wjz9pixwjyj3j771izayl962zziivbx2" ;
5+ } )
6+ { src = ./. ; } ) . shellNix
You can’t perform that action at this time.
0 commit comments