play: init at 0.3.5 (#377500)

This commit is contained in:
Gaétan Lepage 2025-01-29 23:40:16 +01:00 committed by GitHub
commit 6c5496c955
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,42 @@
{
lib,
buildGoModule,
fetchFromGitHub,
versionCheckHook,
nix-update-script,
}:
buildGoModule rec {
pname = "play";
version = "0.3.5";
src = fetchFromGitHub {
owner = "paololazzari";
repo = "play";
tag = "v${version}";
hash = "sha256-31naTjYwCytytKXg9tQo2qx0hVoBwBwL7nVeoAV+/go=";
};
vendorHash = "sha256-9eP0rhsgpTttYrBG/BNk/ICtaM+zKNBz2H2cHuTSt30=";
modRoot = ".";
nativeInstallCheckInputs = [
versionCheckHook
];
versionCheckProgramArg = [ "version" ];
doInstallCheck = true;
passthru = {
updateScript = nix-update-script { };
};
meta = {
description = "TUI playground for programs like grep, sed and awk";
homepage = "https://github.com/paololazzari/play";
changelog = "https://github.com/paololazzari/play/releases/tag/v${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ liberodark ];
mainProgram = "play";
};
}