diff --git a/pkgs/by-name/li/libbde/package.nix b/pkgs/by-name/li/libbde/package.nix new file mode 100644 index 000000000000..acbdb3e1aa30 --- /dev/null +++ b/pkgs/by-name/li/libbde/package.nix @@ -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; + }; +}) diff --git a/pkgs/development/libraries/libbde/default.nix b/pkgs/development/libraries/libbde/default.nix deleted file mode 100644 index 4bef9748701c..000000000000 --- a/pkgs/development/libraries/libbde/default.nix +++ /dev/null @@ -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; - }; -} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e4c8f091d2c5..c385e5d0b4a6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };