diff --git a/pkgs/tools/security/eid-mw/default.nix b/pkgs/tools/security/eid-mw/default.nix index 4bd0587135cf..88f6e359d2b7 100644 --- a/pkgs/tools/security/eid-mw/default.nix +++ b/pkgs/tools/security/eid-mw/default.nix @@ -1,18 +1,20 @@ -{ stdenv, fetchurl, gtk2, nssTools, pcsclite, pkgconfig }: +{ stdenv, fetchFromGitHub, autoreconfHook, gtk2, nssTools, pcsclite +, pkgconfig }: +let version = "4.1.2"; in stdenv.mkDerivation rec { - name = "${package}-${build}"; - package = "eid-mw-4.0.6-1620"; - build = "tcm406-258906"; + name = "eid-mw-${version}"; - src = fetchurl { - url = "http://eid.belgium.be/en/binaries/${package}.tar_${build}.gz"; - sha256 = "1ecb30f9f318bdb61a8d774fe76b948eb5841d4de6fee106029ed78daa7efbf2"; + src = fetchFromGitHub { + sha256 = "034ar1v2qamdyq71nklh1nvqbmw6ryz63jdwnnc873f639mf5w94"; + rev = "v${version}"; + repo = "eid-mw"; + owner = "Fedict"; }; - buildInputs = [ gtk2 pcsclite pkgconfig ]; + buildInputs = [ autoreconfHook gtk2 pcsclite pkgconfig ]; - unpackPhase = "tar -xzf ${src} --strip-components=1"; + doCheck = true; postInstall = '' install -D ${./eid-nssdb.in} $out/bin/eid-nssdb @@ -20,8 +22,6 @@ stdenv.mkDerivation rec { --replace "modutil" "${nssTools}/bin/modutil" ''; - doCheck = true; - meta = with stdenv.lib; { description = "Belgian electronic identity card (eID) middleware"; homepage = http://eid.belgium.be/en/using_your_eid/installing_the_eid_software/linux/;