summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorYegor Timoshenko <yegortimoshenko@riseup.net>2018-08-10 13:50:22 +0300
committerYegor Timoshenko <yegortimoshenko@riseup.net>2018-08-10 14:02:25 +0300
commit4b61b7814ee099bda460262aeb18a6f15d3b4048 (patch)
tree148cd3c515f66ccc77ae9ccb1dd78a0620b016f5 /pkgs
parent02644780d2a90fc533a5fab77d993a2f7dc8a26b (diff)
downloadnixpkgs-4b61b7814ee099bda460262aeb18a6f15d3b4048.tar
nixpkgs-4b61b7814ee099bda460262aeb18a6f15d3b4048.tar.gz
nixpkgs-4b61b7814ee099bda460262aeb18a6f15d3b4048.tar.bz2
nixpkgs-4b61b7814ee099bda460262aeb18a6f15d3b4048.tar.lz
nixpkgs-4b61b7814ee099bda460262aeb18a6f15d3b4048.tar.xz
nixpkgs-4b61b7814ee099bda460262aeb18a6f15d3b4048.tar.zst
nixpkgs-4b61b7814ee099bda460262aeb18a6f15d3b4048.zip
qdigidoc: fetch TSL info
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/security/qdigidoc/default.nix18
1 files changed, 14 insertions, 4 deletions
diff --git a/pkgs/tools/security/qdigidoc/default.nix b/pkgs/tools/security/qdigidoc/default.nix
index c4b35ed6c52..398f88ccfb6 100644
--- a/pkgs/tools/security/qdigidoc/default.nix
+++ b/pkgs/tools/security/qdigidoc/default.nix
@@ -1,5 +1,5 @@
-{ stdenv, fetchgit, cmake, gettext, makeWrapper, pkgconfig, libdigidocpp
-, opensc, openldap, openssl, pcsclite, qtbase, qttranslations }:
+{ stdenv, fetchgit, fetchurl, cmake, darkhttpd, gettext, makeWrapper, pkgconfig
+, libdigidocpp, opensc, openldap, openssl, pcsclite, qtbase, qttranslations }:
 
 stdenv.mkDerivation rec {
   name = "qdigidoc-${version}";
@@ -12,13 +12,23 @@ stdenv.mkDerivation rec {
     fetchSubmodules = true;
   };
 
+  tsl = fetchurl {
+    url = "https://ec.europa.eu/information_society/policy/esignature/trusted-list/tl-mp.xml";
+    sha256 = "0llr2fj8vd097hcr1d0xmzdy4jydv0b5j5qlksbjffs22rqgal14";
+  };
+
+  nativeBuildInputs = [ cmake darkhttpd gettext makeWrapper pkgconfig ];
+
+  postPatch = ''
+    substituteInPlace client/CMakeLists.txt \
+      --replace $\{TSL_URL} file://${tsl}
+  '';
+
   patches = [
     # https://github.com/open-eid/qdigidoc/pull/163
     ./qt511.patch
   ];
 
-  nativeBuildInputs = [ cmake gettext makeWrapper pkgconfig ];
-
   buildInputs = [
     libdigidocpp
     opensc