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