libbde: refactor (#345282)

This commit is contained in:
h7x4 2024-10-05 11:46:37 +02:00 committed by GitHub
commit 329b4ddb05
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 45 additions and 31 deletions

View File

@ -0,0 +1,45 @@
{
lib,
stdenv,
fetchurl,
fuse,
ncurses,
python3,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libbde";
version = "20240502";
src = fetchurl {
url = "https://github.com/libyal/libbde/releases/download/${finalAttrs.version}/libbde-alpha-${finalAttrs.version}.tar.gz";
hash = "sha256-La6rzBOfyBIXDn78vXb8GUt8jgQkzsqM38kRZ7t3Fp0=";
};
buildInputs = [
fuse
ncurses
python3
];
preInstall = ''
substituteInPlace pybde/Makefile \
--replace-fail '$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install' ' '
'';
configureFlags = [ "--enable-python" ];
passthru.updateScript = nix-update-script { };
meta = {
description = "Library to access the BitLocker Drive Encryption (BDE) format";
homepage = "https://github.com/libyal/libbde/";
license = lib.licenses.lgpl3;
maintainers = with lib.maintainers; [
eliasp
bot-wxt1221
];
platforms = lib.platforms.all;
};
})

View File

@ -1,29 +0,0 @@
{ lib
, stdenv
, fetchurl
, fuse
, ncurses
, python3
}:
stdenv.mkDerivation rec {
pname = "libbde";
version = "20221031";
src = fetchurl {
url = "https://github.com/libyal/libbde/releases/download/${version}/${pname}-alpha-${version}.tar.gz";
sha256 = "sha256-uMbwofboePCFWlxEOdRbZK7uZuj0MZC/qusWuu0Bm7g=";
};
buildInputs = [ fuse ncurses python3 ];
configureFlags = [ "--enable-python" ];
meta = with lib; {
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;
};
}

View File

@ -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 { };