diff options
author | Mateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk> | 2015-08-13 13:03:08 +0100 |
---|---|---|
committer | Mateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk> | 2015-08-13 13:07:39 +0100 |
commit | bf37974165cd2ab01f4aa4e48f7cbceb4a651d4a (patch) | |
tree | a15387f9cfd00d9e14431e0e96653ed69f7d6e82 /pkgs/tools/security/stoken | |
parent | 99f32bad76f6ebbfaa85916a0548329f1b20cc01 (diff) |
stoken: add new package
Diffstat (limited to 'pkgs/tools/security/stoken')
-rw-r--r-- | pkgs/tools/security/stoken/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/tools/security/stoken/default.nix b/pkgs/tools/security/stoken/default.nix new file mode 100644 index 0000000000000..769c67991913a --- /dev/null +++ b/pkgs/tools/security/stoken/default.nix @@ -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; + }; +} |