Unverified Commit 678c24a5 authored by Leona Maroni's avatar Leona Maroni
Browse files

dbench: drop

Unmaintained for 14 years
parent 5c0c4807
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
--- dbench-65b1987.org/libnfs.c	2017-11-08 12:25:39.652147989 +0000
+++ dbench-65b1987/libnfs.c	2017-11-08 12:26:20.269897054 +0000
@@ -23,6 +23,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
+#include <stdint.h>
 
 #define discard_const(ptr) ((void *)((intptr_t)(ptr)))
 
+0 −63
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchgit,
  autoconf,
  popt,
  zlib,
  rpcsvc-proto,
  libtirpc,
}:

stdenv.mkDerivation rec {
  pname = "dbench";
  version = "2013-01-01";

  src = fetchgit {
    url = "git://git.samba.org/sahlberg/${pname}.git";
    rev = "65b19870ed8d25bff14cafa1c30beb33f1fb6597";
    sha256 = "16lcbwmmx8z5i73k3dnf54yffrpx7ql3y9k3cpkss9dcyxb1p83i";
  };

  nativeBuildInputs = [
    autoconf
    rpcsvc-proto
  ];
  buildInputs = [
    popt
    zlib
    libtirpc
  ];
  env.NIX_CFLAGS_COMPILE = toString [ "-I${libtirpc.dev}/include/tirpc" ];
  NIX_LDFLAGS = [ "-ltirpc" ];

  patches = [
    # patch has been also sent upstream and might be included in future versions
    ./fix-missing-stdint.patch
  ];

  preConfigure = ''
    ./autogen.sh
    configureFlagsArray+=("--datadir=$out/share/dbench")
  '';

  postInstall = ''
    cp -R loadfiles/* $out/share/dbench/doc/dbench/loadfiles

    # dbench looks here for the file
    ln -s doc/dbench/loadfiles/client.txt $out/share/dbench/client.txt

    # backwards compatible to older nixpkgs packaging introduced by
    # 3f27be8e5d5861cd4b9487d6c5212d88bf24316d
    ln -s dbench/doc/dbench/loadfiles $out/share/loadfiles
  '';

  meta = with lib; {
    description = "Filesystem benchmark tool based on load patterns";
    mainProgram = "dbench";
    homepage = "https://dbench.samba.org/";
    license = licenses.gpl3;
    platforms = platforms.linux;
    maintainers = [ maintainers.bjornfor ];
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -506,6 +506,7 @@ mapAliases {
  dat = nodePackages.dat;
  dave = throw "'dave' has been removed as it has been archived upstream. Consider using 'webdav' instead"; # Added 2025-02-03
  dbeaver = throw "'dbeaver' has been renamed to/replaced by 'dbeaver-bin'"; # Added 2024-05-16
  dbench = throw "'dbench' has been removed as it is unmaintained for 14 years and broken"; # Added 2025-05-17
  dbus-map = throw "'dbus-map' has been dropped as it is unmaintained"; # Added 2024-11-01
  deadpixi-sam = deadpixi-sam-unstable;