depot/third_party/nixpkgs/pkgs/applications/misc/tpmmanager/default.nix
Default email 8a45d4525b Project import generated by Copybara.
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
2022-03-30 11:31:56 +02:00

41 lines
1,007 B
Nix

{ lib, stdenv, fetchFromGitHub, qt4, qmake4Hook, trousers }:
stdenv.mkDerivation rec {
version = "0.8.1";
pname = "tpmmanager";
src = fetchFromGitHub {
owner = "Rohde-Schwarz";
repo = "TPMManager";
rev = "v${version}";
sha256 = "sha256-JKYG+I/tZ+0NDmHcIgKV6eGrjbPvPQKPo0sE/zBlLY4=";
};
nativeBuildInputs = [ qmake4Hook ];
buildInputs = [ qt4 trousers ];
installPhase = ''
mkdir -p $out/bin
install -Dpm755 -D bin/tpmmanager $out/bin/tpmmanager
mkdir -p $out/share/applications
cat > $out/share/applications/tpmmanager.desktop <<EOF
[Desktop Entry]
Type=Application
Version=1.0
Name=tpmmanager
Comment=TPM manager
Exec=$out/bin/tpmmanager
Terminal=false
EOF
'';
meta = {
homepage = "https://projects.sirrix.com/trac/tpmmanager";
description = "Tool for managing the TPM";
license = lib.licenses.gpl2;
maintainers = with lib.maintainers; [ tstrobel ];
platforms = with lib.platforms; linux;
};
}