diff options
author | Charles Hall <charles@computer.surgery> | 2023-12-19 17:20:03 -0800 |
---|---|---|
committer | Charles Hall <charles@computer.surgery> | 2024-01-02 16:30:29 -0800 |
commit | de88f45da933599e7f6eb1f7be71af3e1fc38e34 (patch) | |
tree | e7028d00c72f6c22550294bc1cf32121c18c6b8a /pkgs/by-name/qr | |
parent | 2a40d849811597b86a9f8de5ad39a1f03504f74f (diff) |
qrcodegencpp: init at 1.8.0
Co-authored-by: materus <materus@podkos.pl> Co-authored-by: Franz Pletz <fpletz@fnordicwalking.de>
Diffstat (limited to 'pkgs/by-name/qr')
-rw-r--r-- | pkgs/by-name/qr/qrcodegencpp/package.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/by-name/qr/qrcodegencpp/package.nix b/pkgs/by-name/qr/qrcodegencpp/package.nix new file mode 100644 index 0000000000000..655b948e81e10 --- /dev/null +++ b/pkgs/by-name/qr/qrcodegencpp/package.nix @@ -0,0 +1,32 @@ +{ lib +, stdenv +, qrcodegen +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "qrcodegencpp"; + version = qrcodegen.version; + + src = qrcodegen.src; + + sourceRoot = "${finalAttrs.src.name}/cpp"; + + nativeBuildInputs = lib.optionals stdenv.cc.isClang [ + stdenv.cc.cc.libllvm.out + ]; + + makeFlags = lib.optionals stdenv.cc.isClang [ "AR=llvm-ar" ]; + + installPhase = '' + runHook preInstall + + install -Dt $out/lib/ libqrcodegencpp.a + install -Dt $out/include/qrcodegen/ qrcodegen.hpp + + runHook postInstall + ''; + + meta = { + inherit (qrcodegen.meta) description homepage license maintainers platforms; + }; +}) |