2015-08-13 13:03:08 +01:00
|
|
|
{ stdenv, fetchFromGitHub, autoconf, automake, libtool, pkgconfig
|
|
|
|
, libxml2, nettle
|
|
|
|
, withGTK3 ? true, gtk3 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "stoken";
|
|
|
|
version = "v0.90";
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cernekee";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1k7wn8pmp7dv646g938dsr99090lsphl7zy4m9x7qbh2zlnnf9af";
|
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
aclocal
|
|
|
|
libtoolize --automake --copy
|
|
|
|
autoheader
|
|
|
|
automake --add-missing --copy
|
|
|
|
autoconf
|
|
|
|
'';
|
2017-09-14 20:24:37 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
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
|
2015-08-13 13:18:36 +01:00
|
|
|
] ++ stdenv.lib.optional withGTK3 gtk3;
|
2015-08-13 13:03:08 +01:00
|
|
|
|
2015-08-13 13:18:36 +01:00
|
|
|
meta = with stdenv.lib; {
|
2015-08-13 13:03:08 +01:00
|
|
|
description = "Software Token for Linux/UNIX";
|
|
|
|
homepage = https://github.com/cernekee/stoken;
|
2015-08-13 13:18:36 +01:00
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = [ maintainers.fuuzetsu ];
|
|
|
|
platforms = platforms.all;
|
2015-08-13 13:03:08 +01:00
|
|
|
};
|
|
|
|
}
|