From 60735ae28923798b73caf96be929965c327d6460 Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Tue, 9 May 2023 06:42:54 -0600 Subject: [PATCH] templates: run flake-warn from shellHook --- templates/ada/flake.nix | 1 + templates/go/flake.nix | 1 + templates/mojo/flake.nix | 1 + templates/ocaml/flake.nix | 1 + templates/perl/flake.nix | 1 + 5 files changed, 5 insertions(+) diff --git a/templates/ada/flake.nix b/templates/ada/flake.nix index c758dff..7b39930 100644 --- a/templates/ada/flake.nix +++ b/templates/ada/flake.nix @@ -37,6 +37,7 @@ default = pkgs.mkShell { shellHook = '' PS1='\u@\h:\@; ' + nix flake run github:qbit/xin#flake-warn echo "Ada `${pkgs.gnat12}/bin/gnatmake --version`" ''; nativeBuildInputs = with pkgs; [ gnat12 gprbuild ]; diff --git a/templates/go/flake.nix b/templates/go/flake.nix index 0122ee2..f71a513 100644 --- a/templates/go/flake.nix +++ b/templates/go/flake.nix @@ -32,6 +32,7 @@ default = pkgs.mkShell { shellHook = '' PS1='\u@\h:\@; ' + nix flake run github:qbit/xin#flake-warn echo "Go `${pkgs.go}/bin/go version`" ''; nativeBuildInputs = with pkgs; [ git go gopls go-tools ]; diff --git a/templates/mojo/flake.nix b/templates/mojo/flake.nix index f1fbd95..6795ef4 100644 --- a/templates/mojo/flake.nix +++ b/templates/mojo/flake.nix @@ -38,6 +38,7 @@ default = pkgs.mkShell { shellHook = '' PS1='\u@\h:\@; ' + nix flake run github:qbit/xin#flake-warn echo "Perl `${pkgs.perl}/bin/perl --version`" ''; buildInputs = with pkgs.perlPackages; [ PerlTidy ]; diff --git a/templates/ocaml/flake.nix b/templates/ocaml/flake.nix index 5114cf7..e71177f 100644 --- a/templates/ocaml/flake.nix +++ b/templates/ocaml/flake.nix @@ -39,6 +39,7 @@ default = pkgs.mkShell { shellHook = '' PS1='\u@\h:\@; ' + nix flake run github:qbit/xin#flake-warn echo "OCaml `${pkgs.ocaml}/bin/ocaml --version`" ''; nativeBuildInputs = with pkgs; diff --git a/templates/perl/flake.nix b/templates/perl/flake.nix index 9fb8147..09e1ece 100644 --- a/templates/perl/flake.nix +++ b/templates/perl/flake.nix @@ -34,6 +34,7 @@ default = pkgs.mkShell { shellHook = '' PS1='\u@\h:\@; ' + nix flake run github:qbit/xin#flake-warn echo "Perl `${pkgs.perl}/bin/perl --version`" ''; buildInputs = with pkgs.perlPackages; [ PerlTidy ];