Open yajo opened 2 years ago
I found the workaround. Use this shell.nix
:
let
mach-nix = import (builtins.fetchGit {
url = "https://github.com/DavHau/mach-nix";
rev = "7b0e7f6f58f7332c1b8347e2673036eada1a6998";
}) {};
odoo = (import ./.);
in (odoo.pythonModule.withPackages (ps: [odoo])).env
It works as expected:
> nix-shell
trace: removing dependency python3.8-packaging-21.3 from cryptography
trace:
applying fix 'no-rust-build' (nativeBuildInputs) for cryptography:3.3.2
trace: removing dependency python3.8-setuptools-rust-0.12.1 from cryptography
trace: removing dependency python3.8-setuptools-scm-6.3.2 from pyusb
trace:
automatically detected pname: 'odoo'
trace:
automatically detected version: '15.0'
[nix-shell:~/prodevel/nixdoo/test]$ odoo --version
Odoo Server 15.0
[nix-shell:~/prodevel/nixdoo/test]$ python -c 'import odoo; print(odoo.release.version)'
15.0
[nix-shell:~/prodevel/nixdoo/test]$
exit
Create this
default.nix
file:Run it:
Build it:
Cool!
Now let's say I want a shell with that and other tools. Add this
shell.nix
:Run it:
That error doesn't make much sense, since the requirements seem perfectly valid and resolvable, as they were for the package.