1{
2 lib,
3 stdenv,
4 fetchurl,
5 fuse,
6 ncurses,
7 python3,
8 nix-update-script,
9}:
10
11stdenv.mkDerivation (finalAttrs: {
12 pname = "libbde";
13 version = "20240502";
14
15 src = fetchurl {
16 url = "https://github.com/libyal/libbde/releases/download/${finalAttrs.version}/libbde-alpha-${finalAttrs.version}.tar.gz";
17 hash = "sha256-La6rzBOfyBIXDn78vXb8GUt8jgQkzsqM38kRZ7t3Fp0=";
18 };
19
20 buildInputs = [
21 fuse
22 ncurses
23 python3
24 ];
25
26 preInstall = ''
27 substituteInPlace pybde/Makefile \
28 --replace-fail '$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install' ' '
29 '';
30
31 configureFlags = [ "--enable-python" ];
32
33 passthru.updateScript = nix-update-script { };
34
35 meta = {
36 description = "Library to access the BitLocker Drive Encryption (BDE) format";
37 homepage = "https://github.com/libyal/libbde/";
38 license = lib.licenses.lgpl3;
39 maintainers = with lib.maintainers; [
40 eliasp
41 bot-wxt1221
42 ];
43 platforms = lib.platforms.all;
44 };
45})