1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 06:31:02 +00:00
nixpkgs/pkgs/tools/security/stoken/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

37 lines
874 B
Nix

{ stdenv, fetchFromGitHub, autoconf, automake, libtool, pkgconfig
, libxml2, nettle
, withGTK3 ? true, gtk3 }:
stdenv.mkDerivation rec {
pname = "stoken";
version = "0.92";
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;
};
}