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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e564899d2f19..3e34e61cebfc 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };