about summary refs log tree commit diff
path: root/pkgs/applications/version-management/sapling
AgeCommit message (Collapse)AuthorFilesLines
2024-04-17treewide: replace prefetch-yarn-deps with fixup-yarn-lock where necessarySandro Jäckel1-2/+2
2024-01-20sapling: 0.2.20231113-145254 -> 0.2.20240116-133042Matthew "strager" Glazar3-590/+586
2023-11-24sapling: migrate to prefetch-yarn-depsFelix Buehler1-3/+3
2023-11-16sapling: 0.2.20230523-092610 -> 0.2.20231113-145254Matthew "strager" Glazar3-1176/+1907
The build for Sapling's isl package has changed: * Instead of being a bunch of .js files installed along-side the main executable, isl is now one isl-dist.tar.xz file extracted at run-time by the 'sl web' command. * To configure the 'node' executable used by 'sl web', set the web.node-path Sapling setting by changing the default configs embedded in the sl executable.
2023-08-21sapling: teach gen-deps.py script to update Cargo.lockMatthew "strager" Glazar1-7/+34
Upstream Sapling does not maintain a Cargo.lock file, so Nixpkgs has its own. Teach the gen-deps.py script to update Nixpkgs' Cargo.lock whenever the Cargo.toml files change.
2023-08-03treewide: noop: refer to `src.name` or similar in `sourceRoot` where ↵Jan Malakhovski1-1/+1
appropriate, part 1: trivial cases
2023-06-24treewide: use optionalString instead of 'then ""'Felix Buehler1-1/+1
2023-05-24sapling: 0.2.20230426-145232+7ea1f245 -> 0.2.20230523-092610+f12b7eeeMatthew "strager" Glazar3-374/+239
2023-05-12treewide: don't use rustPlatform.rustAlyssa Ross1-4/+5
This will be deprecated in the next commit.
2023-04-29sapling: 0.2.20230228-144002-h9440b05e -> 0.2.20230426-145232+7ea1f245Matthew "strager" Glazar3-191/+249
2023-04-16sapling: 0.2.20230228-144002-h9440b05e -> 0.2.20230330-193452-h69692651Matthew "strager" Glazar3-447/+505
2023-03-18sapling: fix buildMatthew "strager" Glazar1-3/+8
Nixpkgs commit 451c6321 upgraded setuptools from version 65.0.3 to version 67.4.0. This upgrade introduced a breaking change in setuptools [1] which causes the Sapling package's build to fail: setuptools.extern.packaging.version.InvalidVersion: Invalid version: '0.2.20230124-180750-hf8cd450a' This is an upstream issue [2]. For now, work around this issue in Nixpkgs by truncating Sapling's version number. Before 451c6321: $ nix-env -q sapling sapling-0.2.20230228-144002-h9440b05e $ sl --version Sapling 0.2.20230228-144002-h9440b05e After this patch: $ nix-env -q sapling sapling-0.2.20230228-144002-h9440b05e $ sl --version Sapling 0.2.20230228 Refs: 451c63214766d3bb8d078620cff4dc74463c5bc8 [1] https://github.com/pypa/setuptools/blob/be6c0218bcba78dbd4ea0b5a8bb9acd5d5306240/CHANGES.rst#v6600 [2] https://github.com/facebook/sapling/issues/571
2023-03-06sapling: 0.2.20230124-180750-hf8cd450a -> 0.2.20230228-144002-h9440b05eMatthew "strager" Glazar3-406/+342
2023-02-13sapling: 0.2.20221222-152408-ha6a66d09 -> 0.2.20230124-180750-hf8cd450aMatthew "strager" Glazar3-263/+311
2023-02-12sapling: remove intermediate packageMatthew "strager" Glazar1-94/+76
The build for the sapling package happens in three steps: 1. build sapling-isl 2. build sapling-main, copying files from sapling-isl 3. build sapling, copying files from sapling-main I don't see a reason for splitting sapling-main and sapling. The problem with splitting is that it makes it hard to use a package override to patch sapling-main. Merge sapling-main and sapling so I can easily apply patches with my nixpkgs/config.nix.
2023-01-14sapling: use latest PythonMatthew "strager" Glazar1-7/+3
After upgrading to Sapling 0.2.20221222-152408-ha6a66d09, we no longer need a specific version of Python. Use the Nixpkgs default.
2023-01-14sapling: 0.1.20221118-210929-cfbb68aa -> 0.2.20221222-152408-ha6a66d09Matthew "strager" Glazar3-515/+437
2022-12-09sapling: fix nodejs path, add enableMinimal optionAustin Seipp1-0/+9
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-09sapling: fix 'sl web' commandAustin Seipp1-5/+12
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2022-12-09sapling: fix curl in buildInputs on darwinAustin Seipp1-1/+1
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-01sapling: fix on macOSJade Lovelace1-6/+50
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-11-25sapling: add a simple checkPhaseAustin Seipp1-0/+9
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2022-11-25sapling: set LOCALE_ARCHIVE properlyAustin Seipp1-2/+7
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-24sapling: simplify dependency generation scriptDaniel Nagy5-197/+122
2022-11-24sapling: init at 0.1.20221118-210929-cfbb68aa (#201798)Pierce Bartine4-0/+8100