Commit b03ddc07 authored by emaryn's avatar emaryn Committed by Bjørn Forsman
Browse files

sedutil: 1.20.0 -> 1.49.6

parent 8113e200
Loading
Loading
Loading
Loading
+13 −19
Original line number Diff line number Diff line
@@ -2,46 +2,40 @@
  lib,
  stdenv,
  fetchFromGitHub,
  fetchpatch,
  autoreconfHook,
  systemdLibs,
  libnvme,
}:

stdenv.mkDerivation rec {
  pname = "sedutil";
  version = "1.20.0";
  version = "1.49.6";

  src = fetchFromGitHub {
    owner = "Drive-Trust-Alliance";
    repo = "sedutil";
    rev = version;
    sha256 = "sha256-NG/7aqe48ShHWW5hW8axYWV4+zX0dBE7Wy9q58l0S3E=";
    tag = version;
    hash = "sha256-5Fj5bFjtkaxan2vqQTxxlpcR3FK2HrFS6/9cM2xaZRI=";
  };

  patches = [
    # Fix for gcc-13 pending upstream inclusion:
    #   https://github.com/Drive-Trust-Alliance/sedutil/pull/425
    (fetchpatch {
      name = "gcc-13.patch";
      url = "https://github.com/Drive-Trust-Alliance/sedutil/commit/927cd88cad7bea94c2eebecc18f7881f0defaccb.patch";
      hash = "sha256-/Lvn3CQd7pzNhLa7sQY8VwbyJK/jEM5FzLijTQnzXx8=";
    })
  ];

  postPatch = ''
    patchShebangs .
  '';

  nativeBuildInputs = [
    autoreconfHook
  nativeBuildInputs = [ autoreconfHook ];

  buildInputs = [
    systemdLibs
    libnvme
  ];

  enableParallelBuilding = true;

  meta = with lib; {
  meta = {
    description = "DTA sedutil Self encrypting drive software";
    homepage = "https://www.drivetrust.com";
    license = licenses.gpl3Plus;
    platforms = platforms.linux;
    license = lib.licenses.gpl3Plus;
    platforms = lib.platforms.linux;
    mainProgram = "sedutil-cli";
  };
}