nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 46 lines 779 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 autoreconfHook, 6 pkg-config, 7 libxml2, 8 nettle, 9 withGTK3 ? !stdenv.hostPlatform.isStatic, 10 gtk3, 11}: 12 13stdenv.mkDerivation rec { 14 pname = "stoken"; 15 version = "0.93"; 16 17 src = fetchFromGitHub { 18 owner = "cernekee"; 19 repo = "stoken"; 20 rev = "v${version}"; 21 hash = "sha256-8N7TXdBu37eXWIKCBdaXVW0pvN094oRWrdlcy9raddI="; 22 }; 23 24 strictDeps = true; 25 26 nativeBuildInputs = [ 27 autoreconfHook 28 pkg-config 29 ]; 30 31 buildInputs = [ 32 libxml2 33 nettle 34 ] 35 ++ lib.optionals withGTK3 [ 36 gtk3 37 ]; 38 39 meta = with lib; { 40 description = "Software Token for Linux/UNIX"; 41 homepage = "https://github.com/cernekee/stoken"; 42 license = licenses.lgpl21Plus; 43 maintainers = [ ]; 44 platforms = platforms.all; 45 }; 46}