depot/third_party/nixpkgs/pkgs/by-name/li/libbde/package.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

45 lines
990 B
Nix

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