building '/nix/store/fg84744rvgwf5138h6s4vl3184a42x8z-user-environment.drv'...
warning: not including '/nix/store/q8lpr330ib3rgx99ml40i4gnd1476d9w-DavinciResolve.nix' in the user environment because it's not a directory
Now, I am still kind of new to linux systems and especially to NixOS so it might just be me being dumb and not fully understanding what to do. Would love to get some more information about that.
ImSheeper:
As I understand you correctly - You want me to download that file (default.nix) and try using this command on it, is that so?
No. I want you to download the source code (or I guess the unpatched binary blob, whatever is used as the source for this package) of DaVinci Resolve by hand.
The nix package clearly tries to work around a non-redistributable license, and utterly fails to circumvent DaVinci Resolve’s website’s protections against automated downloads.
To work around this problem, nix has a feature where you can just add the required files to the nix store by hand, at which point nix will see that it’s already in the store and not try to download it again when you install your system as normal, so you never run curl and don’t get this error.
I can’t give you an exact download link, it’s heavily obfuscated and I know next to nothing about DaVinci Resolve, but you’ll probably find it somewhere here: DaVinci Resolve 18 | Blackmagic Design
After you’ve added the correct file to the store, you just need to run the same command you ran when you got that curl error to see if it’s working. If not, the version you got may be incorrect, or the package too outdated to work out of the box, and we’ll need to try and debug the package a bit.
That said, this may be far too difficult for you in the long term. @davidak is also still active around here I think, according to the commit logs they’ve at least built the package before. Maybe they know why the download fails today?
@jshcmpbll
Uh, also while checking, in search.nixos.org the source link for davinci-resolve points to [here](https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/build-support/build-fhsenv-bubblewrap/default.nix#L226) instead of [here](https://github.com/NixOS/nixpkgs/blob/73d174c62ba412c79358895282b6ecee9497469a/pkgs/applications/video/davinci-resolve/default.nix#L30)
### Metadata
Please run `nix-shell -p nix-info --run "nix-info -m"` and paste the result.
```console
- system: `"x86_64-linux"`
- host os: `Linux 6.3.4-zen1, NixOS, 23.11 (Tapir), 23.11.20230627.e18dc96`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.15.1`
- nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
It was fixed by #246647, but the backport for stable failed. You could use the package from unstable if you don’t mind a major update.
In general, please see the official issue tracker for problems with packages and report them, if no issue already exist and tag the package maintainer (it’s actually not me here
).