From 5c92c4f7adfeb40629216c0a4540dc4dedc063b5 Mon Sep 17 00:00:00 2001 From: qzylinra Date: Mon, 25 Aug 2025 09:49:43 +0800 Subject: [PATCH] ibm-sw-tpm2: drop The software build has failed. It has no maintainer. It should be removed. --- pkgs/by-name/ib/ibm-sw-tpm2/package.nix | 51 ------------------------- pkgs/top-level/aliases.nix | 1 + 2 files changed, 1 insertion(+), 51 deletions(-) delete mode 100644 pkgs/by-name/ib/ibm-sw-tpm2/package.nix diff --git a/pkgs/by-name/ib/ibm-sw-tpm2/package.nix b/pkgs/by-name/ib/ibm-sw-tpm2/package.nix deleted file mode 100644 index bcb5024daf36..000000000000 --- a/pkgs/by-name/ib/ibm-sw-tpm2/package.nix +++ /dev/null @@ -1,51 +0,0 @@ -{ - lib, - stdenv, - fetchFromGitHub, - openssl, -}: -let - makefile = if stdenv.hostPlatform.isDarwin then "makefile.mac" else "makefile"; -in -stdenv.mkDerivation rec { - pname = "ibm-sw-tpm2"; - version = "1682-unstable-2024-08-02"; - - src = fetchFromGitHub { - owner = "kgoldman"; - repo = "ibmswtpm2"; - rev = "rev183-2024-08-02"; - hash = "sha256-D2GAkiePBow2iixYMOOeJrnh5hk2lO07dV++lK4X8qE="; - }; - - buildInputs = [ openssl ]; - - sourceRoot = "${src.name}/src"; - - inherit makefile; - - prePatch = '' - # Fix hardcoded path to GCC. - substituteInPlace ${makefile} --replace /usr/bin/gcc "${stdenv.cc}/bin/cc" - - # Remove problematic default CFLAGS. - substituteInPlace ${makefile} \ - --replace -Werror "" \ - --replace -O0 "" \ - --replace -ggdb "" - ''; - - installPhase = '' - mkdir -p $out/bin - cp tpm_server $out/bin - ''; - - meta = with lib; { - description = "IBM's Software TPM 2.0, an implementation of the TCG TPM 2.0 specification"; - mainProgram = "tpm_server"; - homepage = "https://sourceforge.net/projects/ibmswtpm2/"; - platforms = platforms.linux ++ platforms.darwin; - maintainers = [ ]; - license = licenses.bsd3; - }; -} diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 6a6ac68b11a7..e4d5917a2a3f 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -1150,6 +1150,7 @@ mapAliases { ibniz = throw "ibniz has been removed because it fails to compile and the source url is dead"; # Added 2025-04-07 ib-tws = throw "ib-tws has been removed from nixpkgs as it was broken"; # Added 2024-07-15 ib-controller = throw "ib-controller has been removed from nixpkgs as it was broken"; # Added 2024-07-15 + ibm-sw-tpm2 = throw "ibm-sw-tpm2 has been removed, as it was broken"; # Added 2025-08-25 icuReal = throw "icuReal has been removed from nixpkgs as a mistake"; # Added 2025-02-18 imagemagick7Big = throw "'imagemagick7Big' has been renamed to/replaced by 'imagemagickBig'"; # Converted to throw 2024-10-17 imagemagick7 = throw "'imagemagick7' has been renamed to/replaced by 'imagemagick'"; # Converted to throw 2024-10-17