tweag / nix-hour

Questions for the weekly Nix Hour
MIT License
78 stars 3 forks source link

Writing packages #78

Open infinisil opened 4 months ago

infinisil commented 4 months ago

Let's package some packages, perhaps ones from the list of requested ones!

We will focus on this topic this week at Wednesday 16:00 CEST! If anybody has any specific requests, either:

infinisil commented 4 months ago

We will look at this topic again this week at Wednesday 16:00 CEST! If anybody has any specific requests, either:

tcurdt commented 4 months ago

It seems like a nightmare to maintain the sha256 fields. What tooling is there to maintain those?

pinpox commented 4 months ago

I have a question for a package I'm working on: https://github.com/NixOS/nixpkgs/pull/325824 This is a web-frontend (client) for a server application that you can self-host.

Upstream specifies that you can set an environment variable for the build, this "bakes in" the endpoint where the client application will then look for the backend.

Upstream built instructions say:

NEXT_PUBLIC_ENTE_ENDPOINT=http://mydomain.tld:8080 yarn build:photos

How would I package that for nixpkgs? an override? Not sure what the cleanest way would be to do this so the user can set the endpoint easily and it causes as little rebuilds as possible