uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
38
pkgs/tools/security/chrome-token-signing/default.nix
Normal file
38
pkgs/tools/security/chrome-token-signing/default.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{ lib, mkDerivation, fetchFromGitHub, qmake, pcsclite, pkg-config, opensc }:
|
||||
|
||||
mkDerivation rec {
|
||||
pname = "chrome-token-signing";
|
||||
version = "1.1.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "open-eid";
|
||||
repo = "chrome-token-signing";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-wKy/RVR7jx5AkMJgHXsuV+jlzyfH5nDRggcIUgh2ML4=";
|
||||
};
|
||||
|
||||
buildInputs = [ qmake pcsclite pkg-config ];
|
||||
dontUseQmakeConfigure = true;
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace host-linux/ee.ria.esteid.json --replace /usr $out
|
||||
# TODO: macos
|
||||
substituteInPlace host-shared/PKCS11Path.cpp \
|
||||
--replace opensc-pkcs11.so ${opensc}/lib/pkcs11/opensc-pkcs11.so
|
||||
'';
|
||||
|
||||
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
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Chrome and Firefox extension for signing with your eID on the web";
|
||||
homepage = "https://github.com/open-eid/chrome-token-signing/wiki";
|
||||
license = licenses.lgpl21;
|
||||
maintainers = [ maintainers.mmahut ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue