2023-07-05 19:03:45 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, pkg-config
|
|
|
|
, libxml2
|
|
|
|
, nettle
|
|
|
|
, withGTK3 ? true
|
|
|
|
, gtk3
|
|
|
|
}:
|
2015-08-13 12:03:08 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "stoken";
|
2023-07-05 19:09:15 +00:00
|
|
|
version = "0.93";
|
2023-07-05 19:03:45 +00:00
|
|
|
|
2015-08-13 12:03:08 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cernekee";
|
2023-07-05 19:03:45 +00:00
|
|
|
repo = "stoken";
|
2018-05-28 12:59:57 +00:00
|
|
|
rev = "v${version}";
|
2023-07-05 19:09:15 +00:00
|
|
|
hash = "sha256-8N7TXdBu37eXWIKCBdaXVW0pvN094oRWrdlcy9raddI=";
|
2015-08-13 12:03:08 +00:00
|
|
|
};
|
|
|
|
|
2021-12-16 02:53:32 +00:00
|
|
|
strictDeps = true;
|
2023-07-05 19:03:45 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
2015-08-13 12:03:08 +00:00
|
|
|
buildInputs = [
|
2023-07-05 19:03:45 +00:00
|
|
|
libxml2
|
|
|
|
nettle
|
|
|
|
] ++ lib.optionals withGTK3 [
|
|
|
|
gtk3
|
|
|
|
];
|
2015-08-13 12:03:08 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-08-13 12:03:08 +00:00
|
|
|
description = "Software Token for Linux/UNIX";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/cernekee/stoken";
|
2015-08-13 12:18:36 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
2019-12-05 07:29:48 +00:00
|
|
|
maintainers = [ ];
|
2015-08-13 12:18:36 +00:00
|
|
|
platforms = platforms.all;
|
2015-08-13 12:03:08 +00:00
|
|
|
};
|
|
|
|
}
|