depot/third_party/nixpkgs/pkgs/tools/security/stoken/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

44 lines
766 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, pkg-config
, libxml2
, nettle
, withGTK3 ? !stdenv.hostPlatform.isStatic
, gtk3
}:
stdenv.mkDerivation rec {
pname = "stoken";
version = "0.93";
src = fetchFromGitHub {
owner = "cernekee";
repo = "stoken";
rev = "v${version}";
hash = "sha256-8N7TXdBu37eXWIKCBdaXVW0pvN094oRWrdlcy9raddI=";
};
strictDeps = true;
nativeBuildInputs = [
autoreconfHook
pkg-config
];
buildInputs = [
libxml2
nettle
] ++ lib.optionals withGTK3 [
gtk3
];
meta = with lib; {
description = "Software Token for Linux/UNIX";
homepage = "https://github.com/cernekee/stoken";
license = licenses.lgpl21Plus;
maintainers = [ ];
platforms = platforms.all;
};
}