Sergio Pastor Pérez <[email protected]> writes:
I've been informed by some members of the Nix community that
Zulip has
been packaged from source in this repository[4]. I've not done
yet an
in-depth review of the repository. For now, I didn't see
anything that
would make me think it's not packageable in Guix. Maybe some of
our more
experienced Python users can take a quick look.
[4] https://git.afnix.fr/nix-zulip/nix-zulip
This is why we wouldn't be able to package it for Guix:
https://git.afnix.fr/nix-zulip/nix-zulip/src/branch/main/nix/packages/zulip-server/default.nix#L71
--8<---------------cut here---------------start------------->8---
pnpmDeps = pnpm.fetchDeps {
inherit (finalAttrs) pname version src;
fetcherVersion = 2;
hash = "sha256-Bvl8viPDyi3cla1zL87mUjIavCqaWNRLKfoELqufmj8=";
};
--8<---------------cut here---------------end--------------->8---
This is a trick similar to what we're using for the
bazel-build-system in the Guix Science channel. Roughly speaking
this runs "npm install" outside of the build, bundles up the
resulting massive blob of JavaScript in various states of
illegibility, and treats that bundle as an input with a known
hash.
--
Ricardo