mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 04:31:52 +00:00
Merge pull request #41893 from asymmetric/asymmetric/asc-qr
asc-key-to-qr-code-gif: init at 20180613
This commit is contained in:
commit
8807039549
40
pkgs/tools/security/asc-key-to-qr-code-gif/default.nix
Normal file
40
pkgs/tools/security/asc-key-to-qr-code-gif/default.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{ stdenv, fetchFromGitHub, imagemagick, libqrencode
|
||||
, testQR ? false, zbar ? null
|
||||
}:
|
||||
|
||||
assert testQR -> zbar != false;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "asc-key-to-qr-code-gif-${version}";
|
||||
version = "20180613";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "yishilin14";
|
||||
repo = "asc-key-to-qr-code-gif";
|
||||
rev = "5b7b239a0089a5269444cbe8a651c99dd43dce3f";
|
||||
sha256 = "0yrc302a2fhbzryb10718ky4fymfcps3lk67ivis1qab5kbp6z8r";
|
||||
};
|
||||
|
||||
buildInputs = [ imagemagick libqrencode ] ++ stdenv.lib.optional testQR zbar;
|
||||
dontBuild = true;
|
||||
dontStrip = true;
|
||||
dontPatchELF = true;
|
||||
|
||||
preInstall = ''
|
||||
substituteInPlace asc-to-gif.sh \
|
||||
--replace "convert" "${imagemagick}/bin/convert" \
|
||||
--replace "qrencode" "${libqrencode}/bin/qrencode"
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp * $out/bin/
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/yishilin14/asc-key-to-qr-code-gif;
|
||||
description = "Convert ASCII-armored PGP keys to animated QR code";
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ asymmetric ];
|
||||
};
|
||||
}
|
|
@ -678,6 +678,8 @@ with pkgs;
|
|||
|
||||
passExtensions = recurseIntoAttrs pass.extensions;
|
||||
|
||||
asc-key-to-qr-code-gif = callPackage ../tools/security/asc-key-to-qr-code-gif { };
|
||||
|
||||
gopass = callPackage ../tools/security/gopass { };
|
||||
|
||||
browserpass = callPackage ../tools/security/browserpass { };
|
||||
|
|
Loading…
Reference in a new issue