deno2nix icon indicating copy to clipboard operation
deno2nix copied to clipboard

Add preBuild attribute

Open jonathanfishbein1 opened this issue 2 years ago • 4 comments

jonathanfishbein1 avatar Jan 06 '23 23:01 jonathanfishbein1

I can't think use cases, but I guess it seemed to be OK.

Just in case, could you write one nix package using preBuild? I'd like to build it myself and see if it works.

SnO2WMaN avatar Feb 15 '23 04:02 SnO2WMaN

I have to build another nix package that is a dependency. I'm using the preBuild to do that and then copy the artifacts into the deno nix build directory

jonathanfishbein1 avatar Mar 26 '23 23:03 jonathanfishbein1

I'm also finding a postInstall step convenient to echo out the location of the artificats in the nix store

jonathanfishbein1 avatar Mar 26 '23 23:03 jonathanfishbein1

But then again that much easier and can be hardcoded into the install step

jonathanfishbein1 avatar Mar 26 '23 23:03 jonathanfishbein1