about summary refs log tree commit diff
path: root/pkgs/tools/security
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2015-08-13 14:18:36 +0200
committerVladimír Čunát <vcunat@gmail.com>2015-08-13 14:18:36 +0200
commit7307f5c01154df0ab5448d20efb2cfa84fc3e267 (patch)
tree44d57b79c316937e25bc133601fa1f3fad8b4b05 /pkgs/tools/security
parente2e21ef3208fc1fae6139985304f4e46492ac99a (diff)
downloadnixlib-7307f5c01154df0ab5448d20efb2cfa84fc3e267.tar
nixlib-7307f5c01154df0ab5448d20efb2cfa84fc3e267.tar.gz
nixlib-7307f5c01154df0ab5448d20efb2cfa84fc3e267.tar.bz2
nixlib-7307f5c01154df0ab5448d20efb2cfa84fc3e267.tar.lz
nixlib-7307f5c01154df0ab5448d20efb2cfa84fc3e267.tar.xz
nixlib-7307f5c01154df0ab5448d20efb2cfa84fc3e267.tar.zst
nixlib-7307f5c01154df0ab5448d20efb2cfa84fc3e267.zip
stoken: fix evaluation (licence), refactor a little
I hope @fuuzetsu doesn't mind the refactoring.
BTW, do you know about `autoreconfHook`? It might save the preConfigure
and most buildInputs.
Diffstat (limited to 'pkgs/tools/security')
-rw-r--r--pkgs/tools/security/stoken/default.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/pkgs/tools/security/stoken/default.nix b/pkgs/tools/security/stoken/default.nix
index 769c67991913..17652e220da6 100644
--- a/pkgs/tools/security/stoken/default.nix
+++ b/pkgs/tools/security/stoken/default.nix
@@ -23,13 +23,13 @@ stdenv.mkDerivation rec {
   buildInputs = [
     autoconf automake libtool pkgconfig
     libxml2 nettle
-  ] ++ (if withGTK3 then [ gtk3 ] else []);
+  ] ++ stdenv.lib.optional withGTK3 gtk3;
 
-  meta = {
+  meta = with stdenv.lib; {
     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;
+    license = licenses.lgpl21Plus;
+    maintainers = [ maintainers.fuuzetsu ];
+    platforms = platforms.all;
   };
 }