From e0da9ec935d4c2ed36ef8be312c36a1636dcf884 Mon Sep 17 00:00:00 2001 From: Thomas Strobel Date: Wed, 15 Jul 2015 10:13:16 +0200 Subject: [PATCH] tpmmanager: init at 0.8.1 --- pkgs/applications/misc/tpmmanager/default.nix | 43 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 45 insertions(+) create mode 100644 pkgs/applications/misc/tpmmanager/default.nix diff --git a/pkgs/applications/misc/tpmmanager/default.nix b/pkgs/applications/misc/tpmmanager/default.nix new file mode 100644 index 000000000000..85a1c72b349d --- /dev/null +++ b/pkgs/applications/misc/tpmmanager/default.nix @@ -0,0 +1,43 @@ +{ stdenv, fetchgit, qt4, trousers }: + +stdenv.mkDerivation rec { + version = "0.8.1"; + name = "tpmmanager-${version}"; + + src = fetchgit { + url = "https://github.com/Sirrix-AG/TPMManager"; + rev = "9f989206635a6d2c1342576c90fa73eb239519cd"; + sha256 = "24a606f88fed67ed0d0e61dc220295e9e1ab8db3ef3d028fa34b04ff30652d8e"; + }; + + buildInputs = [ qt4 trousers ]; + + preBuild = '' + qmake -makefile PREFIX=\$out + ''; + + installPhase = '' + mkdir -p $out/bin + install -Dpm755 -D bin/tpmmanager $out/bin/tpmmanager + + mkdir -p $out/share/applications + cat > $out/share/applications/tpmmanager.desktop <