nixpkgs/pkgs/applications/misc/tpmmanager/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
1007 B
Nix
Raw Normal View History

2022-03-15 10:32:05 +00:00
{ lib, stdenv, fetchFromGitHub, qt4, qmake4Hook, trousers }:
2015-07-15 08:13:16 +00:00
stdenv.mkDerivation rec {
version = "0.8.1";
pname = "tpmmanager";
2015-07-15 08:13:16 +00:00
2022-03-15 10:32:05 +00:00
src = fetchFromGitHub {
owner = "Rohde-Schwarz";
repo = "TPMManager";
2022-03-21 21:20:31 +00:00
rev = "v${version}";
2022-05-13 09:20:42 +00:00
sha256 = "sha256-UZYn4ssbvLpdB0DssT7MXqQZCu1KkLf/Bsb45Rvgm+E=";
2015-07-15 08:13:16 +00:00
};
2016-04-16 23:34:52 +00:00
nativeBuildInputs = [ qmake4Hook ];
2015-07-15 08:13:16 +00:00
2016-04-16 23:34:52 +00:00
buildInputs = [ qt4 trousers ];
2015-07-15 08:13:16 +00:00
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";
2015-07-15 08:13:16 +00:00
description = "Tool for managing the TPM";
2021-01-15 05:42:41 +00:00
license = lib.licenses.gpl2;
maintainers = with lib.maintainers; [ tstrobel ];
platforms = with lib.platforms; linux;
2015-07-15 08:13:16 +00:00
};
}