Add chrome-token-signing

This commit is contained in:
Domen Kožar 2018-11-08 15:37:18 +00:00 committed by Domen Kožar
parent e29fa386aa
commit 068374c0ae
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,27 @@
{ stdenv, fetchFromGitHub, qmake, pcsclite, pkgconfig }:
stdenv.mkDerivation rec {
name = "chrome-token-signing-${version}";
version = "1.0.7";
src = fetchFromGitHub {
owner = "open-eid";
repo = "chrome-token-signing";
rev = "v${version}";
sha256 = "1icbr5gyf7qqk1qjgcrf6921ws84j5h8zrpzw5mirq4582l5gsav";
};
buildInputs = [ qmake pcsclite pkgconfig ];
dontUseQmakeConfigure = true;
patchPhase = ''
substituteInPlace host-linux/ee.ria.esteid.json --replace /usr $out
'';
installPhase = ''
install -D -t $out/bin host-linux/chrome-token-signing
# TODO: wire these up
install -D -t $out/etc/chromium/native-messaging-hosts host-linux/ee.ria.esteid.json
install -D -t $out/lib/mozilla/native-messaging-hosts host-linux/ff/ee.ria.esteid.json
'';
}

View File

@ -22829,6 +22829,8 @@ with pkgs;
chrome-gnome-shell = callPackage ../desktops/gnome-3/extensions/chrome-gnome-shell {};
chrome-token-signing = libsForQt5.callPackage ../tools/security/chrome-token-signing {};
NSPlist = callPackage ../development/libraries/NSPlist {};
PlistCpp = callPackage ../development/libraries/PlistCpp {};