Loading pkgs/tools/misc/bat-extras/buildBatExtrasPkg.nix +7 −5 Original line number Diff line number Diff line Loading @@ -12,6 +12,7 @@ }: let cleanArgs = lib.flip removeAttrs [ "name" "dependencies" "meta" ]; Loading @@ -26,6 +27,7 @@ stdenv.mkDerivation ( finalAttrs: cleanArgs args // { pname = name; inherit (core) version; src = core; Loading @@ -35,14 +37,14 @@ stdenv.mkDerivation ( buildInputs = dependencies; # Patch shebangs now because our tests rely on them postPatch = '' postPatch = (args.postPatch or "") + '' patchShebangs --host bin/${name} ''; dontConfigure = true; dontBuild = true; # we've already built dontBuild = true; # we've already built it doCheck = true; doCheck = args.doCheck or true; nativeCheckInputs = [ bat bash Loading @@ -52,7 +54,7 @@ stdenv.mkDerivation ( ++ (lib.optionals stdenv.hostPlatform.isDarwin [ getconf ]); checkPhase = '' runHook preCheck bash ./test.sh --compiled --suite ${name} bash ./test.sh --compiled --suite ${name} --verbose --snapshot:show runHook postCheck ''; Loading @@ -69,7 +71,7 @@ stdenv.mkDerivation ( runHook postInstall ''; # We already patched # We have already patched dontPatchShebangs = true; meta = core.meta // { mainProgram = name; } // meta; Loading pkgs/tools/misc/bat-extras/patches/disable-theme-tests.patch +4 −4 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ diff --git a/test/suite/batpipe.sh b/test/suite/batpipe.sh test:batpipe_term_width() { description "Test support for BATPIPE_TERM_WIDTH" snapshot STDOUT + skip "bat-extras does not support `--theme` flag" + skip "bat-extras does not support '--theme' flag" export BATPIPE=color export BATPIPE_DEBUG_PARENT_EXECUTABLE=less Loading @@ -20,7 +20,7 @@ diff --git a/test/suite/batgrep.sh b/test/suite/batgrep.sh description "Snapshot test for colored output." snapshot stdout snapshot stderr + skip "bat-extras does not support `--theme` flag" + skip "bat-extras does not support '--theme' flag" require_rg Loading @@ -28,7 +28,7 @@ diff --git a/test/suite/batgrep.sh b/test/suite/batgrep.sh description "Should respect the BAT_STYLE variable." snapshot stdout snapshot stderr + skip "bat-extras does not support `--theme` flag" + skip "bat-extras does not support '--theme' flag" require_rg Loading @@ -36,7 +36,7 @@ diff --git a/test/suite/batgrep.sh b/test/suite/batgrep.sh description "Snapshot test for output without separator" snapshot stdout snapshot stderr + skip "bat-extras does not support `--theme` flag" + skip "bat-extras does not support '--theme' flag" require_rg Loading
pkgs/tools/misc/bat-extras/buildBatExtrasPkg.nix +7 −5 Original line number Diff line number Diff line Loading @@ -12,6 +12,7 @@ }: let cleanArgs = lib.flip removeAttrs [ "name" "dependencies" "meta" ]; Loading @@ -26,6 +27,7 @@ stdenv.mkDerivation ( finalAttrs: cleanArgs args // { pname = name; inherit (core) version; src = core; Loading @@ -35,14 +37,14 @@ stdenv.mkDerivation ( buildInputs = dependencies; # Patch shebangs now because our tests rely on them postPatch = '' postPatch = (args.postPatch or "") + '' patchShebangs --host bin/${name} ''; dontConfigure = true; dontBuild = true; # we've already built dontBuild = true; # we've already built it doCheck = true; doCheck = args.doCheck or true; nativeCheckInputs = [ bat bash Loading @@ -52,7 +54,7 @@ stdenv.mkDerivation ( ++ (lib.optionals stdenv.hostPlatform.isDarwin [ getconf ]); checkPhase = '' runHook preCheck bash ./test.sh --compiled --suite ${name} bash ./test.sh --compiled --suite ${name} --verbose --snapshot:show runHook postCheck ''; Loading @@ -69,7 +71,7 @@ stdenv.mkDerivation ( runHook postInstall ''; # We already patched # We have already patched dontPatchShebangs = true; meta = core.meta // { mainProgram = name; } // meta; Loading
pkgs/tools/misc/bat-extras/patches/disable-theme-tests.patch +4 −4 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ diff --git a/test/suite/batpipe.sh b/test/suite/batpipe.sh test:batpipe_term_width() { description "Test support for BATPIPE_TERM_WIDTH" snapshot STDOUT + skip "bat-extras does not support `--theme` flag" + skip "bat-extras does not support '--theme' flag" export BATPIPE=color export BATPIPE_DEBUG_PARENT_EXECUTABLE=less Loading @@ -20,7 +20,7 @@ diff --git a/test/suite/batgrep.sh b/test/suite/batgrep.sh description "Snapshot test for colored output." snapshot stdout snapshot stderr + skip "bat-extras does not support `--theme` flag" + skip "bat-extras does not support '--theme' flag" require_rg Loading @@ -28,7 +28,7 @@ diff --git a/test/suite/batgrep.sh b/test/suite/batgrep.sh description "Should respect the BAT_STYLE variable." snapshot stdout snapshot stderr + skip "bat-extras does not support `--theme` flag" + skip "bat-extras does not support '--theme' flag" require_rg Loading @@ -36,7 +36,7 @@ diff --git a/test/suite/batgrep.sh b/test/suite/batgrep.sh description "Snapshot test for output without separator" snapshot stdout snapshot stderr + skip "bat-extras does not support `--theme` flag" + skip "bat-extras does not support '--theme' flag" require_rg