From 0cc722a00400aee2cd36d8c7abda37eb4185180e Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Sun, 29 Sep 2024 18:58:43 +0800 Subject: [PATCH] libbde: add passthru.updateScript --- pkgs/by-name/li/libbde/package.nix | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/pkgs/by-name/li/libbde/package.nix b/pkgs/by-name/li/libbde/package.nix index c90d41c93e6f..59ee5342e367 100644 --- a/pkgs/by-name/li/libbde/package.nix +++ b/pkgs/by-name/li/libbde/package.nix @@ -1,19 +1,22 @@ { lib, stdenv, - fetchurl, + fetchFromGitHub, fuse, ncurses, python3, + unstableGitUpdater, }: stdenv.mkDerivation (finalAttrs: { pname = "libbde"; - version = "20221031"; + version = "0-unstable-20221031"; - src = fetchurl { - url = "https://github.com/libyal/libbde/releases/download/${finalAttrs.version}/libbde-alpha-${finalAttrs.version}.tar.gz"; - sha256 = "sha256-uMbwofboePCFWlxEOdRbZK7uZuj0MZC/qusWuu0Bm7g="; + src = fetchFromGitHub { + owner = "libyal"; + repo = "libbde"; + rev = "a7bf86d0907b84dfb551fdd3f6f548bd687fdcac"; + hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="; }; buildInputs = [ @@ -24,11 +27,16 @@ stdenv.mkDerivation (finalAttrs: { configureFlags = [ "--enable-python" ]; + passthru.updateScript = unstableGitUpdater { }; + 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 ]; + maintainers = with lib.maintainers; [ + eliasp + bot-wxt1221 + ]; platforms = lib.platforms.all; }; })