Hi all,
Watched jonringer’s youtube video on packaging a program and read the documentation.md in the github. Also, I have read on some of the forums that packaging a program can be a good way to learn Nix a bit more. RStudio is currently about a year behind so I thought I’d try that. I think it may be a bigger project than I anticipated.
I git pulled the nixpkgs github and edited the rstudio default.nix, changing the RStudio version number and SHA256. However, when I run nix build I get the following error:
error: cannot evaluate a function that has an argument without a value ('fetchurl')
Nix attempted to evaluate a function as a top level expression; in
this case it must have its arguments supplied either by default
values, or passed explicitly with '--arg' or '--argstr'. See
https://nixos.org/manual/nix/stable/language/constructs.html#functions.
at /home/danny/Documents/Projects/nixpkgs/pkgs/applications/editors/rstudio/default.nix:4:3:
3| , mkDerivation
4| , fetchurl
| ^
5| , fetchpatch
and when I try nixpkgs-review wip I get the error
error:
… while querying the derivation named 'RStudio-2023.06.1+524'
… while calling the 'getAttr' builtin
at //builtin/derivation.nix:19:19: (source not available)
… while calling the 'derivationStrict' builtin
at //builtin/derivation.nix:9:12: (source not available)
… while evaluating derivation 'RStudio-2023.06.1+524'
whose name attribute is located at /home/danny/.cache/nixpkgs-review/rev-707e33fc722ee9efd53c8f671f03443ad44fa4dd-dirty-3/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:300:7
… while evaluating attribute 'preConfigure' of derivation 'RStudio-2023.06.1+524'
at /home/danny/.cache/nixpkgs-review/rev-707e33fc722ee9efd53c8f671f03443ad44fa4dd-dirty-3/nixpkgs/pkgs/applications/editors/rstudio/default.nix:165:5:
164|
165| preConfigure = ''
| ^
166| mkdir dependencies/dictionaries
… while evaluating derivation 'source'
whose name attribute is located at /home/danny/.cache/nixpkgs-review/rev-707e33fc722ee9efd53c8f671f03443ad44fa4dd-dirty-3/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:300:7
error: invalid character in Base64 string: ''
I think these could be due to the mathJaxSrc and rsconnectSrc but I am unable to find a new mathJaxSrc link and updated SHA256 (old link works) and not sure the rev and SHA256 values for rsconnectSrc. The reason why I want to find these is I am thinking they may have been updated since the last update of this package as well. I am not sure about the second error. I would appreciate some thoughts and help.
Please let me know if there is any feedback or anything else I need to provide and thank you in advance!