libbde: refactor (#345282)
This commit is contained in:
commit
329b4ddb05
45
pkgs/by-name/li/libbde/package.nix
Normal file
45
pkgs/by-name/li/libbde/package.nix
Normal 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;
|
||||
};
|
||||
})
|
@ -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;
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
x
Reference in New Issue
Block a user