Files
nixpkgs/pkgs/tools/security/stoken/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

47 lines
777 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 = {
description = "Software Token for Linux/UNIX";
homepage = "https://github.com/cernekee/stoken";
license = lib.licenses.lgpl21Plus;
maintainers = [ ];
platforms = lib.platforms.all;
};
}