tpm-tools: 1.3.9.1 -> 1.3.9.2 (#439418)

authored by

jopejoe1 and committed by
GitHub
da2bbbfb 853760f9

+22 -19
+22 -19
pkgs/by-name/tp/tpm-tools/package.nix
··· 2 lib, 3 stdenv, 4 fetchurl, 5 trousers, 6 openssl, 7 opencryptoki, 8 perl, 9 }: 10 11 - let 12 - version = "1.3.9.1"; 13 - in 14 - stdenv.mkDerivation rec { 15 pname = "tpm-tools"; 16 - inherit version; 17 18 src = fetchurl { 19 - url = "mirror://sourceforge/trousers/tpm-tools/${version}/${pname}-${version}.tar.gz"; 20 - sha256 = "0s7srgghykxnlb1g4izabzf2gfb1knxc0nzn6bly49h8cpi19dww"; 21 }; 22 23 - sourceRoot = "."; 24 25 - patches = [ 26 - (fetchurl { 27 - url = "https://sources.debian.org/data/main/t/tpm-tools/1.3.9.1-0.1/debian/patches/05-openssl1.1_fix_data_mgmt.patch"; 28 - sha256 = "161yysw4wgy3spsz6p1d0ib0h5pnrqm8bdh1l71c4hz6a6wpcyxj"; 29 - }) 30 ]; 31 32 - nativeBuildInputs = [ perl ]; 33 buildInputs = [ 34 trousers 35 openssl 36 opencryptoki 37 ]; 38 39 - meta = with lib; { 40 description = "Management tools for TPM hardware"; 41 longDescription = '' 42 tpm-tools is an open-source package designed to enable user and ··· 44 Module (TPM), similar to a smart card environment. 45 ''; 46 homepage = "https://sourceforge.net/projects/trousers/files/tpm-tools/"; 47 - license = licenses.cpl10; 48 - maintainers = [ maintainers.ak ]; 49 - platforms = platforms.unix; 50 }; 51 - }
··· 2 lib, 3 stdenv, 4 fetchurl, 5 + autoreconfHook, 6 trousers, 7 openssl, 8 opencryptoki, 9 perl, 10 }: 11 12 + stdenv.mkDerivation (finalAttrs: { 13 pname = "tpm-tools"; 14 + version = "1.3.9.2"; 15 16 src = fetchurl { 17 + url = "mirror://sourceforge/trousers/tpm-tools/${finalAttrs.version}/tpm-tools-${finalAttrs.version}.tar.gz"; 18 + hash = "sha256-ivg3lJouwwsZU4msiisxvEn+MVBQdRt9TQ1DK/eBKpc="; 19 }; 20 21 + postPatch = '' 22 + mkdir -p po 23 + mkdir -p m4 24 + cp -R po_/* po/ 25 + touch po/Makefile.in.in 26 + touch m4/Makefile.am 27 + substituteInPlace include/tpm_pkcs11.h \ 28 + --replace-fail "libopencryptoki.so" "${opencryptoki}/lib/opencryptoki/libopencryptoki.so" 29 + ''; 30 31 + nativeBuildInputs = [ 32 + autoreconfHook 33 + perl 34 ]; 35 36 buildInputs = [ 37 trousers 38 openssl 39 opencryptoki 40 ]; 41 42 + meta = { 43 description = "Management tools for TPM hardware"; 44 longDescription = '' 45 tpm-tools is an open-source package designed to enable user and ··· 47 Module (TPM), similar to a smart card environment. 48 ''; 49 homepage = "https://sourceforge.net/projects/trousers/files/tpm-tools/"; 50 + license = lib.licenses.cpl10; 51 + maintainers = [ lib.maintainers.ak ]; 52 + platforms = lib.platforms.unix; 53 }; 54 + })