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

41 lines
1.0 KiB
Nix
Raw Normal View History

2021-01-15 05:42:41 +00:00
{ lib, stdenv, fetchgit, 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
src = fetchgit {
url = "https://github.com/Sirrix-AG/TPMManager";
rev = "9f989206635a6d2c1342576c90fa73eb239519cd";
sha256 = "24a606f88fed67ed0d0e61dc220295e9e1ab8db3ef3d028fa34b04ff30652d8e";
};
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
};
}