mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-06 09:41:39 -05:00
14 lines
355 B
Nix
14 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"
|
|
''
|