summary refs log tree commit diff
diff options
context:
space:
mode:
authorAustin Seipp <aseipp@pobox.com>2022-11-24 20:40:37 -0600
committerAustin Seipp <aseipp@pobox.com>2022-11-25 00:33:19 -0600
commit8d7badd689d814ff7b95d5c7ec751c0a6e511f9a (patch)
tree790ff052dae16e8f03d3168fc564482bf650955e
parentc11026056884330e3811bbd7171cd020f54c2428 (diff)
downloadnixpkgs-8d7badd689d814ff7b95d5c7ec751c0a6e511f9a.tar
nixpkgs-8d7badd689d814ff7b95d5c7ec751c0a6e511f9a.tar.gz
nixpkgs-8d7badd689d814ff7b95d5c7ec751c0a6e511f9a.tar.bz2
nixpkgs-8d7badd689d814ff7b95d5c7ec751c0a6e511f9a.tar.lz
nixpkgs-8d7badd689d814ff7b95d5c7ec751c0a6e511f9a.tar.xz
nixpkgs-8d7badd689d814ff7b95d5c7ec751c0a6e511f9a.tar.zst
nixpkgs-8d7badd689d814ff7b95d5c7ec751c0a6e511f9a.zip
sapling: add a simple checkPhase
Signed-off-by: Austin Seipp <aseipp@pobox.com>
-rw-r--r--pkgs/applications/version-management/sapling/default.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/applications/version-management/sapling/default.nix b/pkgs/applications/version-management/sapling/default.nix
index ef7a64f968a..93c67d10bcb 100644
--- a/pkgs/applications/version-management/sapling/default.nix
+++ b/pkgs/applications/version-management/sapling/default.nix
@@ -131,6 +131,15 @@ stdenv.mkDerivation {
     runHook postInstall
   '';
 
+  # just a simple check phase, until we have a running test suite. this should
+  # help catch issues like lack of a LOCALE_ARCHIVE setting (see GH PR #202760)
+  doCheck = true;
+  checkPhase = ''
+    echo -n "testing sapling version; should be \"${version}\"... "
+    ${sapling}/bin/sl version | grep -qw "${version}"
+    echo "OK!"
+  '';
+
   meta = with lib; {
     description = "A Scalable, User-Friendly Source Control System";
     homepage = "https://sapling-scm.com";