Unverified Commit 329b4ddb authored by h7x4's avatar h7x4 Committed by GitHub
Browse files

libbde: refactor (#345282)

parents f260a968 f839f4a4
Loading
Loading
Loading
Loading
+45 −0
Original line number Diff line number Diff line
{ lib
, stdenv
, fetchurl
, fuse
, ncurses
, python3
{
  lib,
  stdenv,
  fetchurl,
  fuse,
  ncurses,
  python3,
  nix-update-script,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
  pname = "libbde";
  version = "20221031";
  version = "20240502";

  src = fetchurl {
    url = "https://github.com/libyal/libbde/releases/download/${version}/${pname}-alpha-${version}.tar.gz";
    sha256 = "sha256-uMbwofboePCFWlxEOdRbZK7uZuj0MZC/qusWuu0Bm7g=";
    url = "https://github.com/libyal/libbde/releases/download/${finalAttrs.version}/libbde-alpha-${finalAttrs.version}.tar.gz";
    hash = "sha256-La6rzBOfyBIXDn78vXb8GUt8jgQkzsqM38kRZ7t3Fp0=";
  };

  buildInputs = [ fuse ncurses python3 ];
  buildInputs = [
    fuse
    ncurses
    python3
  ];

  preInstall = ''
    substituteInPlace pybde/Makefile \
      --replace-fail '$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install' ' '
  '';

  configureFlags = [ "--enable-python" ];

  meta = with lib; {
  passthru.updateScript = nix-update-script { };

  meta = {
    description = "Library to access the BitLocker Drive Encryption (BDE) format";
    homepage = "https://github.com/libyal/libbde/";
    license = licenses.lgpl3;
    maintainers = with maintainers; [ eliasp ];
    platforms = platforms.all;
    license = lib.licenses.lgpl3;
    maintainers = with lib.maintainers; [
      eliasp
      bot-wxt1221
    ];
    platforms = lib.platforms.all;
  };
}
})
+0 −2
Original line number Diff line number Diff line
@@ -20674,8 +20674,6 @@ with pkgs;
  libbass_fx = (callPackage ../development/libraries/audio/libbass { }).bass_fx;
  libbassmix = (callPackage ../development/libraries/audio/libbass { }).bassmix;
  libbde = callPackage ../development/libraries/libbde { };
  libbdplus = callPackage ../development/libraries/libbdplus { };
  libblockdev = callPackage ../development/libraries/libblockdev { };