I’m working on updating omnisharp-roslyn to use buildDotnetModule - https://github.com/NixOS/nixpkgs/pull/178004
buildDotnetModule has a passthru script fetch-deps
, which gets the source of the package from the src
attribute and uses it to generate a dependencies lockfile.
Hovewer, for this operation to perform properly, the source of omnisharp-roslyn
has to be patched. This patch executes during build time in a postFixup
hook, but does not execute when loading the source from the src
attribute - it loads the source as-is from github, which doesn’t work.
Is there any way to get the package source with hooks and patches applied?