You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to pull in a NUR flake that is unfree I am unable to get Devbox to accept NIXPKGS_ALLOW_UNFREE. This is due to the fact that the --impure flag is not being included during nix print-dev-env when using devbox shell.
Similar issue with postgres timescaledb extension:
› NIXPKGS_ALLOW_UNFREE=1 devbox shell
Info: Ensuring packages are installed.
✓ Computed the Devbox environment.
Error: nix: command error: nix --extra-experimental-features ca-derivations --option experimental-features 'nix-command flakes fetch-closure' print-dev-env --json path:/Users/vinnie/projects/devbox/.devbox/gen/flake: Package ‘timescaledb-2.14.2’ in /nix/store/5w3dp0m37794iffsbm9vd9f1xmmhda6i-source/pkgs/servers/sql/postgresql/ext/timescaledb.nix:38 has an unfree license (‘TSL’), refusing to evaluate.: exit code 1
In my case I got around it by using config.allowUnfree = true in the nix flake configuration I'm using following #912 (comment)
postgres/flake.nix
{description="A flake that adds the timescaledb extension to Postgresql";inputs={nixpkgs.url="github:NixOS/nixpkgs/nixos-unstable";flake-utils.url="github:numtide/flake-utils";};outputs={self,nixpkgs,flake-utils}:
flake-utils.lib.eachDefaultSystem(system:
letpkgs=importnixpkgs{system=system;config.allowUnfree=true;};in{packages={# Return postgrsql with the timescaledb extension included.postgresql=pkgs.postgresql_16.withPackages(p: [p.timescaledb]);};defaultPackage=self.packages.postgresql;});}
Activity
snipebin commentedon Sep 10, 2024
Similar issue with postgres timescaledb extension:
In my case I got around it by using
config.allowUnfree = truein the nix flake configuration I'm using following #912 (comment)postgres/flake.nix
fatrex commentedon Sep 17, 2024
Similar issue with PHP OCI Extension
{ "$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.12.0/.schema/devbox.schema.json", "packages": [ "php@7.2", "php72Extensions.oci8@latest" ], "env": { "NIXPKGS_ALLOW_UNFREE": "1" }, "shell": { "init_hook": [ "echo 'Welcome to devbox!' > /dev/null" ], "scripts": { "test": [ "echo \"Error: no test specified\" && exit 1" ] } } }Output of
devbox shellAadd `--impure` flag when calling print-dev-env (#2279)