mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
stoken: add new package
This commit is contained in:
parent
99f32bad76
commit
bf37974165
35
pkgs/tools/security/stoken/default.nix
Normal file
35
pkgs/tools/security/stoken/default.nix
Normal file
@ -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;
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user