templates: run flake-warn from shellHook

This commit is contained in:
Aaron Bieber 2023-05-09 06:42:54 -06:00
parent 0b799e6a34
commit 60735ae289
No known key found for this signature in database
5 changed files with 5 additions and 0 deletions

View File

@ -37,6 +37,7 @@
default = pkgs.mkShell { default = pkgs.mkShell {
shellHook = '' shellHook = ''
PS1='\u@\h:\@; ' PS1='\u@\h:\@; '
nix flake run github:qbit/xin#flake-warn
echo "Ada `${pkgs.gnat12}/bin/gnatmake --version`" echo "Ada `${pkgs.gnat12}/bin/gnatmake --version`"
''; '';
nativeBuildInputs = with pkgs; [ gnat12 gprbuild ]; nativeBuildInputs = with pkgs; [ gnat12 gprbuild ];

View File

@ -32,6 +32,7 @@
default = pkgs.mkShell { default = pkgs.mkShell {
shellHook = '' shellHook = ''
PS1='\u@\h:\@; ' PS1='\u@\h:\@; '
nix flake run github:qbit/xin#flake-warn
echo "Go `${pkgs.go}/bin/go version`" echo "Go `${pkgs.go}/bin/go version`"
''; '';
nativeBuildInputs = with pkgs; [ git go gopls go-tools ]; nativeBuildInputs = with pkgs; [ git go gopls go-tools ];

View File

@ -38,6 +38,7 @@
default = pkgs.mkShell { default = pkgs.mkShell {
shellHook = '' shellHook = ''
PS1='\u@\h:\@; ' PS1='\u@\h:\@; '
nix flake run github:qbit/xin#flake-warn
echo "Perl `${pkgs.perl}/bin/perl --version`" echo "Perl `${pkgs.perl}/bin/perl --version`"
''; '';
buildInputs = with pkgs.perlPackages; [ PerlTidy ]; buildInputs = with pkgs.perlPackages; [ PerlTidy ];

View File

@ -39,6 +39,7 @@
default = pkgs.mkShell { default = pkgs.mkShell {
shellHook = '' shellHook = ''
PS1='\u@\h:\@; ' PS1='\u@\h:\@; '
nix flake run github:qbit/xin#flake-warn
echo "OCaml `${pkgs.ocaml}/bin/ocaml --version`" echo "OCaml `${pkgs.ocaml}/bin/ocaml --version`"
''; '';
nativeBuildInputs = with pkgs; nativeBuildInputs = with pkgs;

View File

@ -34,6 +34,7 @@
default = pkgs.mkShell { default = pkgs.mkShell {
shellHook = '' shellHook = ''
PS1='\u@\h:\@; ' PS1='\u@\h:\@; '
nix flake run github:qbit/xin#flake-warn
echo "Perl `${pkgs.perl}/bin/perl --version`" echo "Perl `${pkgs.perl}/bin/perl --version`"
''; '';
buildInputs = with pkgs.perlPackages; [ PerlTidy ]; buildInputs = with pkgs.perlPackages; [ PerlTidy ];