treewide: add version tests (#255781)
This commit is contained in:
parent
ba26780794
commit
ad07cd4fc2
10 changed files with 54 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
|||
{ lib, fetchFromGitHub, python3Packages, file, less, highlight, w3m
|
||||
{ lib, fetchFromGitHub, python3Packages, file, less, highlight, w3m, ranger, testers
|
||||
, imagePreviewSupport ? true
|
||||
, neoVimSupport ? true
|
||||
, improvedEncodingDetection ? true
|
||||
|
@ -49,6 +49,10 @@ python3Packages.buildPythonApplication rec {
|
|||
--replace "set preview_images false" "set preview_images true"
|
||||
'';
|
||||
|
||||
passthru.tests.version = testers.testVersion {
|
||||
package = ranger;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "File manager with minimalistic curses interface";
|
||||
homepage = "https://ranger.github.io/";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, stdenv, fetchurl, fetchzip, autoPatchelfHook, installShellFiles, cpio, xar }:
|
||||
{ lib, stdenv, fetchurl, fetchzip, autoPatchelfHook, installShellFiles, cpio, xar, _1password, testers }:
|
||||
|
||||
let
|
||||
inherit (stdenv.hostPlatform) system;
|
||||
|
@ -63,6 +63,10 @@ stdenv.mkDerivation {
|
|||
$out/bin/${mainProgram} --version
|
||||
'';
|
||||
|
||||
passthru.tests.version = testers.testVersion {
|
||||
package = _1password;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "1Password command-line tool";
|
||||
homepage = "https://developer.1password.com/docs/cli/";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, buildGoModule, fetchFromGitHub }:
|
||||
{ lib, buildGoModule, fetchFromGitHub, lazygit, testers }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "lazygit";
|
||||
|
@ -16,6 +16,10 @@ buildGoModule rec {
|
|||
|
||||
ldflags = [ "-X main.version=${version}" "-X main.buildSource=nix" ];
|
||||
|
||||
passthru.tests.version = testers.testVersion {
|
||||
package = lazygit;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Simple terminal UI for git commands";
|
||||
homepage = "https://github.com/jesseduffield/lazygit";
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
, IOKit
|
||||
, MediaRemote
|
||||
, SkyLight
|
||||
, testers
|
||||
}:
|
||||
|
||||
let
|
||||
|
@ -53,6 +54,11 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru.tests.version = testers.testVersion {
|
||||
package = finalAttrs.finalPackage;
|
||||
version = "sketchybar-v${finalAttrs.version}";
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "A highly customizable macOS status bar replacement";
|
||||
homepage = "https://github.com/FelixKratz/SketchyBar";
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
, fetchFromGitHub
|
||||
, Carbon
|
||||
, Cocoa
|
||||
, testers
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
|
@ -31,6 +32,11 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
substituteInPlace $out/Library/LaunchDaemons/org.nixos.skhd.plist --subst-var out
|
||||
'';
|
||||
|
||||
passthru.tests.version = testers.testVersion {
|
||||
package = finalAttrs.finalPackage;
|
||||
version = "skhd-v${finalAttrs.version}";
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Simple hotkey daemon for macOS";
|
||||
homepage = "https://github.com/koekeishiya/skhd";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, buildGoModule, fetchFromGitHub }:
|
||||
{ lib, buildGoModule, fetchFromGitHub, lazydocker, testers }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "lazydocker";
|
||||
|
@ -21,6 +21,10 @@ buildGoModule rec {
|
|||
|
||||
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
|
||||
|
||||
passthru.tests.version = testers.testVersion {
|
||||
package = lazydocker;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "A simple terminal UI for both docker and docker-compose";
|
||||
homepage = "https://github.com/jesseduffield/lazydocker";
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
, ncurses
|
||||
, zig_0_11
|
||||
, installShellFiles
|
||||
, testers
|
||||
, pie ? stdenv.isDarwin
|
||||
}:
|
||||
|
||||
|
@ -31,6 +32,10 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
installManPage ncdu.1
|
||||
'';
|
||||
|
||||
passthru.tests.version = testers.testVersion {
|
||||
package = finalAttrs.finalPackage;
|
||||
};
|
||||
|
||||
meta = {
|
||||
homepage = "https://dev.yorhel.nl/ncdu";
|
||||
description = "Disk usage analyzer with an ncurses interface";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, stdenv, fetchurl, pkg-config, libcaca }:
|
||||
{ lib, stdenv, fetchurl, pkg-config, libcaca, toilet, testers }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "toilet";
|
||||
|
@ -12,6 +12,10 @@ stdenv.mkDerivation rec {
|
|||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ libcaca ];
|
||||
|
||||
passthru.tests.version = testers.testVersion {
|
||||
package = toilet;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Display large colourful characters in text mode";
|
||||
homepage = "http://caca.zoy.org/wiki/toilet";
|
||||
|
|
|
@ -4,6 +4,8 @@
|
|||
, installShellFiles
|
||||
, stdenv
|
||||
, darwin
|
||||
, bottom
|
||||
, testers
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
|
@ -36,6 +38,10 @@ rustPlatform.buildRustPackage rec {
|
|||
|
||||
BTM_GENERATE = true;
|
||||
|
||||
passthru.tests.version = testers.testVersion {
|
||||
package = bottom;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "A cross-platform graphical process/system monitor with a customizable interface";
|
||||
homepage = "https://github.com/ClementTsang/bottom";
|
||||
|
|
|
@ -3,6 +3,8 @@
|
|||
, fetchFromGitHub
|
||||
, darwin
|
||||
, removeReferencesTo
|
||||
, btop
|
||||
, testers
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
@ -30,6 +32,10 @@ stdenv.mkDerivation rec {
|
|||
${removeReferencesTo}/bin/remove-references-to -t ${stdenv.cc.cc} $(readlink -f $out/bin/btop)
|
||||
'';
|
||||
|
||||
passthru.tests.version = testers.testVersion {
|
||||
package = btop;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "A monitor of resources";
|
||||
homepage = "https://github.com/aristocratos/btop";
|
||||
|
|
Loading…
Reference in a new issue