about summary refs log tree commit diff
path: root/pkgs/tools/security
diff options
context:
space:
mode:
authorMateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>2015-08-13 13:03:08 +0100
committerMateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>2015-08-13 13:07:39 +0100
commitbf37974165cd2ab01f4aa4e48f7cbceb4a651d4a (patch)
treea15387f9cfd00d9e14431e0e96653ed69f7d6e82 /pkgs/tools/security
parent99f32bad76f6ebbfaa85916a0548329f1b20cc01 (diff)
downloadnixlib-bf37974165cd2ab01f4aa4e48f7cbceb4a651d4a.tar
nixlib-bf37974165cd2ab01f4aa4e48f7cbceb4a651d4a.tar.gz
nixlib-bf37974165cd2ab01f4aa4e48f7cbceb4a651d4a.tar.bz2
nixlib-bf37974165cd2ab01f4aa4e48f7cbceb4a651d4a.tar.lz
nixlib-bf37974165cd2ab01f4aa4e48f7cbceb4a651d4a.tar.xz
nixlib-bf37974165cd2ab01f4aa4e48f7cbceb4a651d4a.tar.zst
nixlib-bf37974165cd2ab01f4aa4e48f7cbceb4a651d4a.zip
stoken: add new package
Diffstat (limited to 'pkgs/tools/security')
-rw-r--r--pkgs/tools/security/stoken/default.nix35
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 000000000000..769c67991913
--- /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;
+  };
+}