mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 14:57:28 +03:00
7307f5c011
I hope @fuuzetsu doesn't mind the refactoring. BTW, do you know about `autoreconfHook`? It might save the preConfigure and most buildInputs.
36 lines
873 B
Nix
36 lines
873 B
Nix
{ 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
|
|
] ++ 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;
|
|
};
|
|
}
|