2015-08-13 14:03:08 +02:00
|
|
|
{ stdenv, fetchFromGitHub, autoconf, automake, libtool, pkgconfig
|
|
|
|
, libxml2, nettle
|
|
|
|
, withGTK3 ? true, gtk3 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "stoken";
|
2018-06-14 06:15:57 +02:00
|
|
|
version = "0.92";
|
2015-08-13 14:03:08 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cernekee";
|
|
|
|
repo = pname;
|
2018-05-28 14:59:57 +02:00
|
|
|
rev = "v${version}";
|
2018-06-14 06:15:57 +02:00
|
|
|
sha256 = "0q7cv8vy5b2cslm57maqb6jsm7s4rwacjyv6gplwp26yhm38hw7y";
|
2015-08-13 14:03:08 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
aclocal
|
|
|
|
libtoolize --automake --copy
|
|
|
|
autoheader
|
|
|
|
automake --add-missing --copy
|
|
|
|
autoconf
|
|
|
|
'';
|
2017-09-14 21:24:37 +02:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2015-08-13 14:03:08 +02:00
|
|
|
buildInputs = [
|
2017-09-14 21:24:37 +02:00
|
|
|
autoconf automake libtool
|
2015-08-13 14:03:08 +02:00
|
|
|
libxml2 nettle
|
2015-08-13 14:18:36 +02:00
|
|
|
] ++ stdenv.lib.optional withGTK3 gtk3;
|
2015-08-13 14:03:08 +02:00
|
|
|
|
2015-08-13 14:18:36 +02:00
|
|
|
meta = with stdenv.lib; {
|
2015-08-13 14:03:08 +02:00
|
|
|
description = "Software Token for Linux/UNIX";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/cernekee/stoken";
|
2015-08-13 14:18:36 +02:00
|
|
|
license = licenses.lgpl21Plus;
|
2019-12-05 08:29:48 +01:00
|
|
|
maintainers = [ ];
|
2015-08-13 14:18:36 +02:00
|
|
|
platforms = platforms.all;
|
2015-08-13 14:03:08 +02:00
|
|
|
};
|
|
|
|
}
|