nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 76 lines 1.5 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 nix-update-script, 6 pkg-config, 7 libpng, 8 libiconv, 9 autoreconfHook, 10}: 11 12stdenv.mkDerivation (finalAttrs: { 13 pname = "qrencode"; 14 version = "4.1.1"; 15 16 outputs = [ 17 "bin" 18 "out" 19 "man" 20 "dev" 21 ]; 22 23 src = fetchFromGitHub { 24 owner = "fukuchi"; 25 repo = "libqrencode"; 26 tag = "v${finalAttrs.version}"; 27 hash = "sha256-nbrmg9SqCqMrLE7WCfNEzMV/eS9UVCKCrjBrGMzAsLk"; 28 }; 29 30 nativeBuildInputs = [ 31 pkg-config 32 autoreconfHook 33 ]; 34 35 buildInputs = [ 36 libiconv 37 libpng 38 ]; 39 40 doCheck = false; 41 42 checkPhase = '' 43 runHook preCheck 44 45 pushd tests 46 ./test_basic.sh 47 popd 48 49 runHook postCheck 50 ''; 51 52 passthru = { 53 tests = finalAttrs.finalPackage.overrideAttrs { 54 configureFlags = [ "--with-tests" ]; 55 doCheck = true; 56 }; 57 updateScript = nix-update-script { }; 58 }; 59 60 meta = { 61 homepage = "https://fukuchi.org/works/qrencode/"; 62 description = "C library and command line tool for encoding data in a QR Code symbol"; 63 longDescription = '' 64 Libqrencode is a C library for encoding data in a QR Code symbol, 65 a kind of 2D symbology that can be scanned by handy terminals 66 such as a smartphone. 67 68 The library also contains qrencode, a command-line utility to output 69 QR Code images in various formats. 70 ''; 71 license = lib.licenses.lgpl21Plus; 72 maintainers = [ lib.maintainers.mdaniels5757 ]; 73 platforms = lib.platforms.all; 74 mainProgram = "qrencode"; 75 }; 76})