3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/security/stoken/default.nix

38 lines
906 B
Nix
Raw Normal View History

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 = "0.92";
2015-08-13 13:03:08 +01:00
name = "${pname}-${version}";
src = fetchFromGitHub {
owner = "cernekee";
repo = pname;
2018-05-28 13:59:57 +01:00
rev = "v${version}";
sha256 = "0q7cv8vy5b2cslm57maqb6jsm7s4rwacjyv6gplwp26yhm38hw7y";
2015-08-13 13:03:08 +01:00
};
preConfigure = ''
aclocal
libtoolize --automake --copy
autoheader
automake --add-missing --copy
autoconf
'';
nativeBuildInputs = [ pkgconfig ];
2015-08-13 13:03:08 +01:00
buildInputs = [
autoconf automake libtool
2015-08-13 13:03:08 +01:00
libxml2 nettle
] ++ stdenv.lib.optional withGTK3 gtk3;
2015-08-13 13:03:08 +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;
license = licenses.lgpl21Plus;
maintainers = [ maintainers.fuuzetsu ];
platforms = platforms.all;
2015-08-13 13:03:08 +01:00
};
}