mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 18:33:00 +00:00
kdbplus: remove
has not been updated in years
This commit is contained in:
parent
7e151ba980
commit
40e304c8b0
@ -1,76 +0,0 @@
|
||||
{ lib, stdenv, requireFile, unzip, rlwrap, bash, zlib }:
|
||||
|
||||
assert (stdenv.hostPlatform.system == "i686-linux");
|
||||
|
||||
let
|
||||
libPath = lib.makeLibraryPath
|
||||
[ stdenv.cc.libc stdenv.cc.cc zlib ];
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "kdbplus";
|
||||
version = "3.6";
|
||||
|
||||
src = requireFile rec {
|
||||
message = ''
|
||||
Nix can't download kdb+ for you automatically. Go to
|
||||
http://kx.com and download the free, 32-bit version for
|
||||
Linux. Then run "nix-prefetch-url file://\$PWD/${name}" in
|
||||
the directory where you saved it. Note you need version ${version}.
|
||||
'';
|
||||
name = "linuxx86.zip";
|
||||
sha256 = "0w6znd9warcqx28vf648n0vgmxyyy9kvsfpsfw37d1kp5finap4p";
|
||||
};
|
||||
|
||||
dontStrip = true;
|
||||
nativeBuildInputs = [ unzip ];
|
||||
|
||||
phases = "unpackPhase installPhase";
|
||||
unpackPhase = "mkdir ${pname}-${version} && cd ${pname}-${version} && unzip -qq ${src}";
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin $out/libexec
|
||||
|
||||
patchelf \
|
||||
--interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
||||
--set-rpath ${libPath} \
|
||||
./q/l32/q
|
||||
mv ./q/l32/q $out/libexec/q
|
||||
|
||||
# Shell script wrappers to make things more convenient...
|
||||
|
||||
cat > $out/bin/q-install <<- EOF
|
||||
#!${bash}/bin/bash
|
||||
if [ -f \$HOME/q/q.k ]; then
|
||||
echo "kdb has already been unpacked in \$HOME. Skipping..."
|
||||
exit 0
|
||||
fi
|
||||
echo -n "Unzipping ${src} into \$HOME... "
|
||||
cd \$HOME && ${unzip}/bin/unzip -qq ${src}
|
||||
echo "Done"
|
||||
EOF
|
||||
|
||||
cat > $out/bin/q <<- EOF
|
||||
#!${bash}/bin/bash
|
||||
if [ ! -f \$HOME/q/q.k ]; then
|
||||
echo "ERROR: You need to unzip the Q sources into \$HOME before running q."
|
||||
echo
|
||||
echo "Try:"
|
||||
echo " cd \$HOME && unzip ${src}"
|
||||
echo "(or run q-install)"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exec ${rlwrap}/bin/rlwrap $out/libexec/q \$@
|
||||
EOF
|
||||
|
||||
chmod +x $out/bin/q $out/bin/q-install
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Analytics and time-series database";
|
||||
homepage = "http://www.kx.com/";
|
||||
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
||||
license = lib.licenses.unfree;
|
||||
platforms = [ "i686-linux" ];
|
||||
maintainers = [ lib.maintainers.thoughtpolice ];
|
||||
};
|
||||
}
|
@ -586,6 +586,7 @@ mapAliases ({
|
||||
kube3d = k3d; # Added 2022-0705
|
||||
kafkacat = kcat; # Added 2021-10-07
|
||||
kak-lsp = kakoune-lsp; # Added 2024-04-01
|
||||
kdbplus = throw "'kdbplus' has been removed from nixpkgs"; # Added 2024-05-06
|
||||
kdeconnect = plasma5Packages.kdeconnect-kde; # Added 2020-10-28
|
||||
keepassx = throw "KeePassX is no longer actively developed. Please consider KeePassXC as a maintained alternative."; # Added 2023-02-17
|
||||
keepassx2 = throw "KeePassX is no longer actively developed. Please consider KeePassXC as a maintained alternative."; # Added 2023-02-17
|
||||
|
@ -9590,8 +9590,6 @@ with pkgs;
|
||||
|
||||
kdoctor = callPackage ../development/tools/kdoctor { };
|
||||
|
||||
kdbplus = pkgsi686Linux.callPackage ../applications/misc/kdbplus { };
|
||||
|
||||
kdigger = callPackage ../tools/security/kdigger { };
|
||||
|
||||
kdiskmark = libsForQt5.callPackage ../tools/filesystems/kdiskmark { };
|
||||
|
Loading…
Reference in New Issue
Block a user