stoken: add new package

This commit is contained in:
Mateusz Kowalczyk 2015-08-13 13:03:08 +01:00
parent 99f32bad76
commit bf37974165
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,35 @@
{ 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
'';
buildInputs = [
autoconf automake libtool pkgconfig
libxml2 nettle
] ++ (if withGTK3 then [ gtk3 ] else []);
meta = {
description = "Software Token for Linux/UNIX";
homepage = https://github.com/cernekee/stoken;
license = stdenv.lib.license.lgpl21Plus;
maintainers = [ stdenv.lib.maintainers.fuuzetsu ];
platforms = stdenv.lib.platforms.all;
};
}

View File

@ -3063,6 +3063,10 @@ let
stress-ng = callPackage ../tools/system/stress-ng { };
stoken = callPackage ../tools/security/stoken {
withGTK3 = config.stoken.withGTK3 or true;
};
storeBackup = callPackage ../tools/backup/store-backup { };
stow = callPackage ../tools/misc/stow { };