aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorpacien2021-07-25 14:20:30 +0200
committerpacien2021-07-25 14:20:30 +0200
commit85febbe5a2eeab4463b5463b55dc232f141f2588 (patch)
tree3a8c1f9a3c4d41f3692f0e5a61c1182c1f3846ed /flake.nix
parent5fa8d869f476323d5243111b6c6c785c83d99400 (diff)
downloaduge_l2_rdbms_python_proto-85febbe5a2eeab4463b5463b55dc232f141f2588.tar.gz
sql: add queries (with embrace)
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix11
1 files changed, 9 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index e09265f..578bb9b 100644
--- a/flake.nix
+++ b/flake.nix
@@ -4,7 +4,9 @@
4 4
5{ 5{
6 inputs = { 6 inputs = {
7 nixpkgs.url = "github:NixOS/nixpkgs/nixos-21.05"; 7 # for python3Packages.embrace: https://github.com/NixOS/nixpkgs/pull/131425
8 nixpkgs.url = "github:pacien/nixpkgs/3faf31d";
9 #nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
8 flake-utils.url = "github:numtide/flake-utils"; 10 flake-utils.url = "github:numtide/flake-utils";
9 }; 11 };
10 12
@@ -13,8 +15,13 @@
13 with import nixpkgs { inherit system; }; 15 with import nixpkgs { inherit system; };
14 let 16 let
15 17
16 develPackagesAndScripts = [ 18 python = python39;
19
20 develPackagesAndScripts = with python.pkgs; [
17 postgresql_13 # PostgreSQL server with the standard admin tools. 21 postgresql_13 # PostgreSQL server with the standard admin tools.
22 ipython # Interactive Python REPL for experimenting.
23 psycopg2 # PostgreSQL driver for Python
24 embrace # bridges raw SQL queries to Python functions
18 25
19 # More pleasant alternative to psql, with colours and auto-completion. 26 # More pleasant alternative to psql, with colours and auto-completion.
20 # Custom configuration to suppress irrelevant warnings and messages. 27 # Custom configuration to suppress irrelevant warnings and messages.