mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-09 20:16:41 -04:00
15 lines
355 B
Nix
15 lines
355 B
Nix
![]() |
{ lib, poetry2nix, postgresql_14, runCommandCC, stdenv }:
|
||
|
|
||
|
let env = poetry2nix.mkPoetryEnv { projectDir = ./.; };
|
||
|
in if stdenv.isDarwin then
|
||
|
env
|
||
|
else
|
||
|
runCommandCC "subdirectory-test"
|
||
|
{
|
||
|
PSYCOPG_IMPL = "python";
|
||
|
LD_LIBRARY_PATH = lib.makeLibraryPath [ postgresql_14 ];
|
||
|
} ''
|
||
|
'${env}/bin/python' -c 'import psycopg'
|
||
|
touch "$out"
|
||
|
''
|