I am working on packaging rmapi in this pull request. My approach was:
- Add all the nix relevant files (
default.nix
,deps.nix
,derivation.nix
,shell.nix
) to the rmapi repository (Pull Request) - Add a derivation to nixpkgs which fetches and uses derivation.nix from the rmapi repository.
My thinking was that by storing derivation.nix
, deps.nix
and shell.nix
in the rmapi repository I can:
- add a github action which automatically updates
deps.nix
- add support for a
nix-shell
powered development environment
My problem right now is that my pull request to nixpkgs does not pass ci checks. I do think this happens because pkgs/applications/office/rmapi/default.nix uses fetchFromGithub
to load the derivation.nix
from the rmapi repository. Which won’t work during ofborg evaluation because of security / sandboxing.
If that’s the case: Is the my chosen approach wrong?