Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 41 lines 904 B view raw
1{ lib 2, stdenv 3, fetchFromGitHub 4}: 5 6stdenv.mkDerivation rec { 7 pname = "qrcodegen"; 8 version = "1.8.0"; 9 10 src = fetchFromGitHub { 11 owner = "nayuki"; 12 repo = "QR-Code-generator"; 13 rev = "v${version}"; 14 sha256 = "sha256-aci5SFBRNRrSub4XVJ2luHNZ2pAUegjgQ6pD9kpkaTY="; 15 }; 16 17 preBuild = '' 18 cd c/ 19 ''; 20 21 installPhase = '' 22 runHook preInstall 23 24 mkdir -p $out/lib $out/include/qrcodegen 25 cp libqrcodegen.a $out/lib 26 cp qrcodegen.h $out/include/qrcodegen/ 27 28 runHook postInstall 29 ''; 30 31 meta = with lib; { 32 homepage = "https://www.nayuki.io/page/qr-code-generator-library"; 33 description = "High-quality QR Code generator library in many languages"; 34 license = licenses.mit; 35 maintainers = with maintainers; [ mcbeth AndersonTorres ]; 36 platforms = platforms.unix; 37 broken = stdenv.isDarwin; 38 }; 39} 40# TODO: build the other languages 41# TODO: multiple outputs