refactor: pull out flake devshells
This commit is contained in:
22
devshell/postgres-c.nix
Normal file
22
devshell/postgres-c.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
system,
|
||||
pkgs,
|
||||
self
|
||||
}: pkgs.mkShell {
|
||||
buildInputs = (with pkgs; [
|
||||
inotify-tools
|
||||
postgresql_15
|
||||
]) ++ (with self.packages.${system}; [
|
||||
nvim-pager
|
||||
]) ++ (with pkgs; [
|
||||
gdb
|
||||
gcc
|
||||
]);
|
||||
|
||||
PAGER = "${self.packages.${system}.nvim-pager}/bin/pager";
|
||||
|
||||
shellHook = ''
|
||||
export PATH=${pkgs.gcc}/bin:$PATH
|
||||
export PAGER="${self.packages.${system}.nvim-pager}/bin/pager"
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user