xo: drop
This commit is contained in:
@@ -1,60 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
installShellFiles,
|
||||
buildPackages,
|
||||
versionCheckHook,
|
||||
nix-update-script,
|
||||
}:
|
||||
buildGoModule rec {
|
||||
pname = "xo";
|
||||
version = "1.0.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "xo";
|
||||
repo = "xo";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-cmSY+Et2rE+hLZ1+d2Vvwp+CX0hfLz08QKivQQd7SIQ=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-aTjLoP7u2mMF1Ns/Wb9RR0xAqQCZJjjb5UzY2de6yBU=";
|
||||
|
||||
ldflags = [
|
||||
"-X main.version=v${version}"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
installShellFiles
|
||||
];
|
||||
|
||||
postInstall = lib.optionalString (stdenv.hostPlatform.emulatorAvailable buildPackages) (
|
||||
let
|
||||
emulator = stdenv.hostPlatform.emulator buildPackages;
|
||||
in
|
||||
''
|
||||
installShellCompletion --cmd xo \
|
||||
--bash <(${emulator} $out/bin/xo completion bash) \
|
||||
--fish <(${emulator} $out/bin/xo completion fish) \
|
||||
--zsh <(${emulator} $out/bin/xo completion zsh)
|
||||
''
|
||||
);
|
||||
|
||||
nativeInstallCheckInputs = [
|
||||
versionCheckHook
|
||||
];
|
||||
versionCheckProgramArg = "--version";
|
||||
doInstallCheck = true;
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "Command line tool to generate idiomatic Go code for SQL databases supporting PostgreSQL, MySQL, SQLite, Oracle, and Microsoft SQL Server";
|
||||
homepage = "https://github.com/xo/xo";
|
||||
changelog = "https://github.com/xo/xo/releases/tag/v${version}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ xiaoxiangmoe ];
|
||||
mainProgram = "xo";
|
||||
};
|
||||
}
|
||||
@@ -2695,6 +2695,7 @@ mapAliases {
|
||||
xmlroff = throw "'xmlroff' has been removed as it is unmaintained and broken"; # Added 2025-05-18
|
||||
xmr-stak = throw "xmr-stak has been removed from nixpkgs because it was broken"; # Added 2024-07-15
|
||||
xmake-core-sv = throw "'xmake-core-sv' has been removed, use 'libsv' instead"; # Added 2024-10-10
|
||||
xo = throw "Use 'dbtpl' instead of 'xo'"; # Added 2025-09-28
|
||||
xorg-autoconf = util-macros; # Added 2025-08-18
|
||||
xournal = throw "'xournal' has been removed due to lack of activity upstream and depending on gnome2. Consider using 'xournalpp' instead."; # Added 2024-12-06
|
||||
xonsh-unwrapped = python3Packages.xonsh; # Added 2024-06-18
|
||||
|
||||
Reference in New Issue
Block a user