Commit graph

10 commits

Author SHA1 Message Date
Matthew "strager" Glazar 7875a11bd6 sapling: use latest Python
After upgrading to Sapling 0.2.20221222-152408-ha6a66d09, we no longer
need a specific version of Python. Use the Nixpkgs default.
2023-01-14 19:55:17 -06:00
Matthew "strager" Glazar 8ed32c567e sapling: 0.1.20221118-210929-cfbb68aa -> 0.2.20221222-152408-ha6a66d09 2023-01-14 11:32:44 -06:00
Austin Seipp c847a43b67 sapling: fix nodejs path, add enableMinimal option
This change fixes the path to 'nodejs' in the Sapling scripts, so that
the 'sl web' command works OOTB even if the user has a fresh `$PATH`
without node itself.

However, this is really a developer-only tool, and isn't needed just to
e.g. clone repositories. In particular, a 'fetchSapling' codepath would
not need it; therefore we make it optional, but turned on by default.
The intention is to have a 'saplingMinimal' expression which can be used
for that path.

NOTE: this does NOT add a 'saplingMinimal' expression to
all-packages.nix; that would just result in more Hydra churn, so we
avoid it for now.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
2022-12-09 18:26:22 -06:00
Austin Seipp 21e7ab0afc sapling: fix 'sl web' command
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2022-12-09 18:26:22 -06:00
Austin Seipp 37f2a530e1 sapling: fix curl in buildInputs on darwin
It's needed on Darwin, but not Linux, so this is a bit more accurate.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
2022-12-09 18:26:22 -06:00
Jade Lovelace 6065d768e1 sapling: fix on macOS
There were two factors here: our cargo hook was messing up the cargo
config, which broke the build, and also an upstream bug where Sapling
didn't work on Python 3.10.

The upstream issue was filed as https://github.com/facebook/sapling/issues/279

We can get rid of the python 3.8 override as soon as this patch gets
into a released version.
2022-12-01 10:12:43 -06:00
Austin Seipp 8d7badd689 sapling: add a simple checkPhase
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2022-11-25 00:33:19 -06:00
Austin Seipp c110260568 sapling: set LOCALE_ARCHIVE properly
Without this, `sl` simply fails on any non-NixOS machine with an
immediate failure, as it can't set the locale properly.

As usual, this can be fixed by setting LOCALE_ARCHIVE for glibc
explicitly. With this, `sl` works out of the box on NixOS and non-NixOS
machines.

Also add myself as a maintainer.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
2022-11-25 00:33:19 -06:00
Daniel Nagy aab14dc769 sapling: simplify dependency generation script 2022-11-24 14:14:20 -06:00
Pierce Bartine 47dfc53fea
sapling: init at 0.1.20221118-210929-cfbb68aa (#201798) 2022-11-24 00:58:03 -06:00