Commit a9679031 authored by Gaetan Lepage's avatar Gaetan Lepage Committed by Gaétan Lepage
Browse files

justbuild: add tests.version test

parent 8c4502b9
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -23,6 +23,9 @@

  curl,
  libarchive,

  testers,
  justbuild,
}:
let
  stdenv = gccStdenv;
@@ -167,6 +170,14 @@ stdenv.mkDerivation rec {
    runHook postInstall
  '';

  passthru = {
    tests.version = testers.testVersion {
      package = justbuild;
      command = "just version";
      version = builtins.replaceStrings [ "." ] [ "," ] version;
    };
  };

  meta = {
    broken = stdenv.hostPlatform.isDarwin;
    description = "Generic build tool";