Merge pull request #41893 from asymmetric/asymmetric/asc-qr

asc-key-to-qr-code-gif: init at 20180613

authored by xeji and committed by GitHub 88070395 1e0a2eaf

+42
+40
pkgs/tools/security/asc-key-to-qr-code-gif/default.nix
··· 1 + { stdenv, fetchFromGitHub, imagemagick, libqrencode 2 + , testQR ? false, zbar ? null 3 + }: 4 + 5 + assert testQR -> zbar != false; 6 + 7 + stdenv.mkDerivation rec { 8 + name = "asc-key-to-qr-code-gif-${version}"; 9 + version = "20180613"; 10 + 11 + src = fetchFromGitHub { 12 + owner = "yishilin14"; 13 + repo = "asc-key-to-qr-code-gif"; 14 + rev = "5b7b239a0089a5269444cbe8a651c99dd43dce3f"; 15 + sha256 = "0yrc302a2fhbzryb10718ky4fymfcps3lk67ivis1qab5kbp6z8r"; 16 + }; 17 + 18 + buildInputs = [ imagemagick libqrencode ] ++ stdenv.lib.optional testQR zbar; 19 + dontBuild = true; 20 + dontStrip = true; 21 + dontPatchELF = true; 22 + 23 + preInstall = '' 24 + substituteInPlace asc-to-gif.sh \ 25 + --replace "convert" "${imagemagick}/bin/convert" \ 26 + --replace "qrencode" "${libqrencode}/bin/qrencode" 27 + ''; 28 + 29 + installPhase = '' 30 + mkdir -p $out/bin 31 + cp * $out/bin/ 32 + ''; 33 + 34 + meta = with stdenv.lib; { 35 + homepage = https://github.com/yishilin14/asc-key-to-qr-code-gif; 36 + description = "Convert ASCII-armored PGP keys to animated QR code"; 37 + platforms = platforms.linux; 38 + maintainers = with maintainers; [ asymmetric ]; 39 + }; 40 + }
+2
pkgs/top-level/all-packages.nix
··· 678 678 679 679 passExtensions = recurseIntoAttrs pass.extensions; 680 680 681 + asc-key-to-qr-code-gif = callPackage ../tools/security/asc-key-to-qr-code-gif { }; 682 + 681 683 gopass = callPackage ../tools/security/gopass { }; 682 684 683 685 browserpass = callPackage ../tools/security/browserpass { };