Merge pull request #308615 from Stunkymonkey/kdbplus-deprecate-phases

kdbplus: remove

authored by Felix Bühler and committed by GitHub e35d693b 40da51f2

+1 -78
-76
pkgs/applications/misc/kdbplus/default.nix
··· 1 - { lib, stdenv, requireFile, unzip, rlwrap, bash, zlib }: 2 - 3 - assert (stdenv.hostPlatform.system == "i686-linux"); 4 - 5 - let 6 - libPath = lib.makeLibraryPath 7 - [ stdenv.cc.libc stdenv.cc.cc zlib ]; 8 - in 9 - stdenv.mkDerivation rec { 10 - pname = "kdbplus"; 11 - version = "3.6"; 12 - 13 - src = requireFile rec { 14 - message = '' 15 - Nix can't download kdb+ for you automatically. Go to 16 - http://kx.com and download the free, 32-bit version for 17 - Linux. Then run "nix-prefetch-url file://\$PWD/${name}" in 18 - the directory where you saved it. Note you need version ${version}. 19 - ''; 20 - name = "linuxx86.zip"; 21 - sha256 = "0w6znd9warcqx28vf648n0vgmxyyy9kvsfpsfw37d1kp5finap4p"; 22 - }; 23 - 24 - dontStrip = true; 25 - nativeBuildInputs = [ unzip ]; 26 - 27 - phases = "unpackPhase installPhase"; 28 - unpackPhase = "mkdir ${pname}-${version} && cd ${pname}-${version} && unzip -qq ${src}"; 29 - installPhase = '' 30 - mkdir -p $out/bin $out/libexec 31 - 32 - patchelf \ 33 - --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 34 - --set-rpath ${libPath} \ 35 - ./q/l32/q 36 - mv ./q/l32/q $out/libexec/q 37 - 38 - # Shell script wrappers to make things more convenient... 39 - 40 - cat > $out/bin/q-install <<- EOF 41 - #!${bash}/bin/bash 42 - if [ -f \$HOME/q/q.k ]; then 43 - echo "kdb has already been unpacked in \$HOME. Skipping..." 44 - exit 0 45 - fi 46 - echo -n "Unzipping ${src} into \$HOME... " 47 - cd \$HOME && ${unzip}/bin/unzip -qq ${src} 48 - echo "Done" 49 - EOF 50 - 51 - cat > $out/bin/q <<- EOF 52 - #!${bash}/bin/bash 53 - if [ ! -f \$HOME/q/q.k ]; then 54 - echo "ERROR: You need to unzip the Q sources into \$HOME before running q." 55 - echo 56 - echo "Try:" 57 - echo " cd \$HOME && unzip ${src}" 58 - echo "(or run q-install)" 59 - exit 1 60 - fi 61 - 62 - exec ${rlwrap}/bin/rlwrap $out/libexec/q \$@ 63 - EOF 64 - 65 - chmod +x $out/bin/q $out/bin/q-install 66 - ''; 67 - 68 - meta = { 69 - description = "Analytics and time-series database"; 70 - homepage = "http://www.kx.com/"; 71 - sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; 72 - license = lib.licenses.unfree; 73 - platforms = [ "i686-linux" ]; 74 - maintainers = [ lib.maintainers.thoughtpolice ]; 75 - }; 76 - }
+1
pkgs/top-level/aliases.nix
··· 586 586 kube3d = k3d; # Added 2022-0705 587 587 kafkacat = kcat; # Added 2021-10-07 588 588 kak-lsp = kakoune-lsp; # Added 2024-04-01 589 + kdbplus = throw "'kdbplus' has been removed from nixpkgs"; # Added 2024-05-06 589 590 kdeconnect = plasma5Packages.kdeconnect-kde; # Added 2020-10-28 590 591 keepassx = throw "KeePassX is no longer actively developed. Please consider KeePassXC as a maintained alternative."; # Added 2023-02-17 591 592 keepassx2 = throw "KeePassX is no longer actively developed. Please consider KeePassXC as a maintained alternative."; # Added 2023-02-17
-2
pkgs/top-level/all-packages.nix
··· 9583 9583 9584 9584 kdoctor = callPackage ../development/tools/kdoctor { }; 9585 9585 9586 - kdbplus = pkgsi686Linux.callPackage ../applications/misc/kdbplus { }; 9587 - 9588 9586 kdigger = callPackage ../tools/security/kdigger { }; 9589 9587 9590 9588 kdiskmark = libsForQt5.callPackage ../tools/filesystems/kdiskmark { };