7dc7a8c8fc
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/stoken/versions. These checks were done: - built on NixOS - /nix/store/hygpmiw7a636bsydqyrkh1rqiw5f36nh-stoken-0.92/bin/stoken passed the binary check. - Warning: no invocation of /nix/store/hygpmiw7a636bsydqyrkh1rqiw5f36nh-stoken-0.92/bin/stoken-gui had a zero exit code or showed the expected version - 1 of 2 passed binary check by having a zero exit code. - 0 of 2 passed binary check by having the new version present in output. - found 0.92 with grep in /nix/store/hygpmiw7a636bsydqyrkh1rqiw5f36nh-stoken-0.92 - directory tree listing: https://gist.github.com/4e9af90c5364e054183e3b51d2ec5d7a - du listing: https://gist.github.com/7671604980c1e3ec7cb11d47ad4f521d
38 lines
906 B
Nix
38 lines
906 B
Nix
{ stdenv, fetchFromGitHub, autoconf, automake, libtool, pkgconfig
|
|
, libxml2, nettle
|
|
, withGTK3 ? true, gtk3 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "stoken";
|
|
version = "0.92";
|
|
name = "${pname}-${version}";
|
|
src = fetchFromGitHub {
|
|
owner = "cernekee";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0q7cv8vy5b2cslm57maqb6jsm7s4rwacjyv6gplwp26yhm38hw7y";
|
|
};
|
|
|
|
preConfigure = ''
|
|
aclocal
|
|
libtoolize --automake --copy
|
|
autoheader
|
|
automake --add-missing --copy
|
|
autoconf
|
|
'';
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [
|
|
autoconf automake libtool
|
|
libxml2 nettle
|
|
] ++ stdenv.lib.optional withGTK3 gtk3;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Software Token for Linux/UNIX";
|
|
homepage = https://github.com/cernekee/stoken;
|
|
license = licenses.lgpl21Plus;
|
|
maintainers = [ maintainers.fuuzetsu ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|