depot/third_party/nixpkgs/pkgs/applications/misc/tpmmanager/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

41 lines
1 KiB
Nix

{ stdenv, fetchgit, qt4, qmake4Hook, trousers }:
stdenv.mkDerivation rec {
version = "0.8.1";
pname = "tpmmanager";
src = fetchgit {
url = "https://github.com/Sirrix-AG/TPMManager";
rev = "9f989206635a6d2c1342576c90fa73eb239519cd";
sha256 = "24a606f88fed67ed0d0e61dc220295e9e1ab8db3ef3d028fa34b04ff30652d8e";
};
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 = stdenv.lib.licenses.gpl2;
maintainers = with stdenv.lib.maintainers; [ tstrobel ];
platforms = with stdenv.lib.platforms; linux;
inherit version;
};
}