2023-08-04 22:07:22 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, pkg-config
|
|
|
|
, libxml2
|
|
|
|
, nettle
|
2024-01-02 11:29:13 +00:00
|
|
|
, withGTK3 ? !stdenv.hostPlatform.isStatic
|
2023-08-04 22:07:22 +00:00
|
|
|
, gtk3
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "stoken";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "0.93";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cernekee";
|
2023-08-04 22:07:22 +00:00
|
|
|
repo = "stoken";
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = "v${version}";
|
2023-08-04 22:07:22 +00:00
|
|
|
hash = "sha256-8N7TXdBu37eXWIKCBdaXVW0pvN094oRWrdlcy9raddI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
strictDeps = true;
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
2023-08-04 22:07:22 +00:00
|
|
|
libxml2
|
|
|
|
nettle
|
|
|
|
] ++ lib.optionals withGTK3 [
|
|
|
|
gtk3
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Software Token for Linux/UNIX";
|
|
|
|
homepage = "https://github.com/cernekee/stoken";
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = [ ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|